aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/sksl_enums.inc
diff options
context:
space:
mode:
authorGravatar Ben Wagner <benjaminwagner@google.com>2018-01-24 17:32:17 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-26 15:03:28 +0000
commita56c4d267a877d208311a5326d134824ec987db3 (patch)
treed33e2e560c9f5962e4a8398cdea1c3be7e52d37e /src/sksl/sksl_enums.inc
parentfc4f768e5aaf8efdd112f38295a35de83a0f9a55 (diff)
Rename .include files to .inc
Change-Id: Ie7a59d598a5916d8620cb55064a1204f90bc148d Reviewed-on: https://skia-review.googlesource.com/99244 Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Commit-Queue: Ben Wagner <benjaminwagner@google.com>
Diffstat (limited to 'src/sksl/sksl_enums.inc')
-rw-r--r--src/sksl/sksl_enums.inc35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/sksl/sksl_enums.inc b/src/sksl/sksl_enums.inc
new file mode 100644
index 0000000000..eb60b3b0c5
--- /dev/null
+++ b/src/sksl/sksl_enums.inc
@@ -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
+};
+
+)"