Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
impeller
renderer
shader_library.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/shader_library.h
"
6
7
namespace
impeller
{
8
9
ShaderLibrary::ShaderLibrary
() =
default
;
10
11
ShaderLibrary::~ShaderLibrary
() =
default
;
12
13
void
ShaderLibrary::RegisterFunction
(
14
std::string
name
,
// NOLINT(performance-unnecessary-value-param)
15
ShaderStage
stage,
16
std::shared_ptr<fml::Mapping>
17
code,
// NOLINT(performance-unnecessary-value-param)
18
RegistrationCallback
19
callback
) {
// NOLINT(performance-unnecessary-value-param)
20
if
(
callback
) {
21
callback
(
false
);
22
}
23
}
24
25
}
// namespace impeller
impeller::ShaderLibrary::~ShaderLibrary
virtual ~ShaderLibrary()
impeller::ShaderLibrary::RegisterFunction
virtual void RegisterFunction(std::string name, ShaderStage stage, std::shared_ptr< fml::Mapping > code, RegistrationCallback callback)
Definition
shader_library.cc:13
impeller::ShaderLibrary::RegistrationCallback
std::function< void(bool)> RegistrationCallback
Definition
shader_library.h:30
impeller::ShaderLibrary::ShaderLibrary
ShaderLibrary()
callback
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
Definition
fl_key_channel_responder.cc:120
name
const char * name
Definition
fuchsia.cc:50
shader_library.h
impeller
Definition
texture.h:18
impeller::ShaderStage
ShaderStage
Definition
shader_types.h:22
Generated on Fri Apr 26 2024 06:14:15 for Flutter Engine by
1.9.8