diff options
author | 2017-11-10 15:34:03 -0500 | |
---|---|---|
committer | 2017-11-13 14:36:40 +0000 | |
commit | aae47c878b83ab6d9742d92a6fa47e762f6b9204 (patch) | |
tree | fd13dbc1dc7c5dc36f8262099cf8ade55ec0cb47 /src/sksl/sksl_enums.include | |
parent | 2d9cb57c83553be3434c04f860d5e9fec30cb453 (diff) |
sksl enum support
Bug: skia:
Change-Id: I4d505b31cf8b59de12bcdbca410aafc085977ba9
Reviewed-on: https://skia-review.googlesource.com/68621
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/sksl_enums.include')
-rw-r--r-- | src/sksl/sksl_enums.include | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/sksl/sksl_enums.include b/src/sksl/sksl_enums.include new file mode 100644 index 0000000000..eb60b3b0c5 --- /dev/null +++ b/src/sksl/sksl_enums.include @@ -0,0 +1,35 @@ +R"(/* + * Copyright 2017 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + + +/*************************************************************************************************/ +/* This file is used from both C++ and SkSL, so we need to stick to syntax compatible with both. */ +/*************************************************************************************************/ + +/** + * We have coverage effects that clip rendering to the edge of some geometric primitive. + * This enum specifies how that clipping is performed. Not all factories that take a + * GrProcessorEdgeType will succeed with all values and it is up to the caller to check for + * a NULL return. + */ +enum class GrClipEdgeType { + kFillBW, + kFillAA, + kInverseFillBW, + kInverseFillAA, + kHairlineAA, + + kLast = kHairlineAA +}; + +enum class PMConversion { + kToPremul = 0, + kToUnpremul = 1, + kPMConversionCnt = 2 +}; + +)" |