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 
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
Definition: comparable.h:95