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 11 #include "include/gpu/graphite/GraphiteTypes.h" 12 13 // TODO: this header should be moved to include/gpu/graphite once the Android-specific 14 // precompilation API is made public 15 namespace skgpu::graphite { 16 17 class Context; 18 class GraphicsPipelineDesc; 19 class PaintOptions; 20 struct RenderPassDesc; 21 class RuntimeEffectDictionary; 22 class PrecompileContext; 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 */ 28 bool AndroidSpecificPrecompile(PrecompileContext*, 29 RuntimeEffectDictionary* rteDict, 30 const GraphicsPipelineDesc& pipelineDesc, 31 const RenderPassDesc& renderPassDesc); 32 33 } // namespace skgpu::graphite 34 35 #endif // skgpu_graphite_PublicPrecompile_DEFINED 36