| Flutter Impeller |

shader_function_gles.cc
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "impeller/renderer/backend/gles/shader_function_gles.h"
6
7 namespace impeller {
8
9 ShaderFunctionGLES::ShaderFunctionGLES(
10 UniqueID library_id,
11 ShaderStage stage,
12 std::string name,
13 std::shared_ptr<const fml::Mapping> mapping)
14 : ShaderFunction(library_id, std::move(name), stage),
15 mapping_(std::move(mapping)) {}
16
17 ShaderFunctionGLES::~ShaderFunctionGLES() = default;
18
19 const std::shared_ptr<const fml::Mapping>&
20 ShaderFunctionGLES::GetSourceMapping() const {
21 return mapping_;
22 }
23
24 } // namespace impeller
impeller
Definition: allocation.cc:12
impeller::ShaderStage
ShaderStage
Definition: shader_types.h:22
std
Definition: comparable.h:95
shader_function_gles.h