Flutter Engine
The Flutter Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
PublicPrecompile.h
Go to the documentation of this file.
1/*
2 * Copyright 2022 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef skgpu_graphite_PublicPrecompile_DEFINED
9#define skgpu_graphite_PublicPrecompile_DEFINED
10
12
13// TODO: this header should be moved to include/gpu/graphite once the precompilation API
14// is made public
15namespace skgpu::graphite {
16
17class Context;
18class GraphicsPipelineDesc;
19class PaintOptions;
20struct RenderPassDesc;
21class RuntimeEffectDictionary;
22
23
24/*
25 * TODO: Rather than passing in a pipelineDesc and renderPassDesc we need to add an
26 * opaque serializable object that contains the same information.
27 */
29 RuntimeEffectDictionary* rteDict,
30 const GraphicsPipelineDesc& pipelineDesc,
31 const RenderPassDesc& renderPassDesc);
32
33} // namespace skgpu::graphite
34
35#endif // skgpu_graphite_PublicPrecompile_DEFINED
void Precompile(Context *context, const PaintOptions &paintOptions, DrawTypeFlags drawTypes=kMostCommon)