Index: src/core/Sk2DShadowMapShader.h |
diff --git a/src/core/Sk2DShadowMapShader.h b/src/core/Sk2DShadowMapShader.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e4e27775920a8aafa1c4d14a2bd027e7a8caeae4 |
--- /dev/null |
+++ b/src/core/Sk2DShadowMapShader.h |
@@ -0,0 +1,30 @@ |
+/* |
+ * Copyright 2016 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+ |
+#ifndef SkSk2DShadowMapShader_DEFINED |
+#define SkSk2DShadowMapShader_DEFINED |
+ |
+#ifdef SK_EXPERIMENTAL_SHADOWING |
+ |
+class SkLights; |
+class SkShader; |
+ |
+class SK_API Sk2DShadowMapShader { |
jvanverth1
2016/09/07 14:47:24
SkRadialShadowMapShader? (use 'git mv' to rename t
vjiaoblack
2016/09/07 15:21:40
Done.
|
+public: |
+ /** This shader creates a 1D strip depth map for 2D lights. |
+ * It can only take in 1 light to generate one shader at a time. |
+ */ |
+ static sk_sp<SkShader> Make(sk_sp<SkShader> occluderShader, |
+ sk_sp<SkLights> light, |
+ int diffuseWidth, int diffuseHeight); |
+ |
+ SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() |
+}; |
+ |
+#endif |
+#endif |