• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2021 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_ContextUtils_DEFINED
9 #define skgpu_ContextUtils_DEFINED
10 
11 #include "experimental/graphite/include/Context.h"
12 #include "include/core/SkBlendMode.h"
13 #include "include/core/SkSpan.h"
14 #include "include/core/SkTileMode.h"
15 
16 enum class CodeSnippetID : uint8_t;
17 class SkShaderCodeDictionary;
18 class SkUniform;
19 class SkUniformBlock;
20 class SkUniquePaintParamsID;
21 
22 namespace skgpu {
23 
24 class PaintParams;
25 
26 std::tuple<SkUniquePaintParamsID, std::unique_ptr<SkUniformBlock>> ExtractPaintData(
27         SkShaderCodeDictionary*, const PaintParams&);
28 
29 } // namespace skgpu
30 
31 #endif // skgpu_ContextUtils_DEFINED
32