aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private
diff options
context:
space:
mode:
authorGravatar Jim Van Verth <jvanverth@google.com>2017-01-16 13:03:37 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-01-16 18:40:59 +0000
commit2103cf0ff09763aeaa35508734f765aec9b75665 (patch)
tree444b8499ced29fa07554ea14f0f1fb30afb509e7 /include/private
parentac04fef619ad3939a25e66bdaef6f6b1e7f5ca50 (diff)
Split ShadowMaskFilter into separate ambient and spot mask filters
This does not change the public API. BUG=skia:6119 Change-Id: Ibdcd2f8611bc2eec332d8a65e5d51246b89a0a90 Reviewed-on: https://skia-review.googlesource.com/7083 Commit-Queue: Jim Van Verth <jvanverth@google.com> Reviewed-by: Jim Van Verth <jvanverth@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/private')
-rwxr-xr-xinclude/private/SkShadowFlags.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/private/SkShadowFlags.h b/include/private/SkShadowFlags.h
new file mode 100755
index 0000000000..0caa01060d
--- /dev/null
+++ b/include/private/SkShadowFlags.h
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2017 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkShadowFlags_DEFINED
+#define SkShadowFlags_DEFINED
+
+// A set of flags shared between the SkAmbientShadowMaskFilter and the SkSpotShadowMaskFilter
+enum SkShadowFlags {
+ kNone_ShadowFlag = 0x00,
+ /** The occluding object is not opaque. Knowing that the occluder is opaque allows
+ * us to cull shadow geometry behind it and improve performance. */
+ kTransparentOccluder_ShadowFlag = 0x01,
+ /** Use a larger umbra for a darker shadow */
+ kLargerUmbra_ShadowFlag = 0x02,
+ /** Use a Gaussian for the edge function rather than smoothstep */
+ kGaussianEdge_ShadowFlag = 0x04,
+ /** mask for all shadow flags */
+ kAll_ShadowFlag = 0x07
+};
+
+#endif