| 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_PrecompileInternal_DEFINED |
| 9 |
#define skgpu_graphite_PrecompileInternal_DEFINED |
| 10 |
|
| 11 |
#include "include/gpu/graphite/GraphiteTypes.h" |
| 12 |
|
| 13 |
namespace skgpu::graphite { |
| 14 |
|
| 15 |
enum class Coverage; |
| 16 |
class Context; |
| 17 |
class KeyContext; |
| 18 |
class PaintOptions; |
| 19 |
struct RenderPassDesc; |
| 20 |
|
| 21 |
// Create the Pipelines specified by the paint options by combining the shading portion w/ the |
| 22 |
// specified 'drawTypes' and RenderPassDesc. |
| 23 |
void PrecompileCombinations(const RendererProvider*, |
| 24 |
ResourceProvider*, |
| 25 |
const PaintOptions&, |
| 26 |
const KeyContext&, |
| 27 |
DrawTypeFlags, |
| 28 |
bool withPrimitiveBlender, |
| 29 |
Coverage, |
| 30 |
const RenderPassDesc&); |
| 31 |
|
| 32 |
} // namespace skgpu::graphite |
| 33 |
|
| 34 |
#endif // skgpu_graphite_PrecompileInternal_DEFINED |