1 | /* |
2 | * Copyright 2017 Google Inc. |
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 GrSharedEnums_DEFINED |
9 | #define GrSharedEnums_DEFINED |
10 | |
11 | /*************************************************************************************************/ |
12 | /* This file is used from both C++ and SkSL, so we need to stick to syntax compatible with both. */ |
13 | /*************************************************************************************************/ |
14 | |
15 | /** |
16 | * We have coverage effects that clip rendering to the edge of some geometric primitive. |
17 | * This enum specifies how that clipping is performed. Not all factories that take a |
18 | * GrProcessorEdgeType will succeed with all values and it is up to the caller to check for |
19 | * a NULL return. |
20 | */ |
21 | enum class GrClipEdgeType { |
22 | kFillBW, |
23 | kFillAA, |
24 | kInverseFillBW, |
25 | kInverseFillAA, |
26 | kHairlineAA, |
27 | |
28 | kLast = kHairlineAA |
29 | }; |
30 | |
31 | enum class PMConversion { |
32 | kToPremul = 0, |
33 | kToUnpremul = 1, |
34 | kPMConversionCnt = 2 |
35 | }; |
36 | |
37 | #endif |
38 | |