Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: src/core/SkRadialShadowMapShader.h

Issue 2311223004: added in radial shadows (Closed)
Patch Set: made req changes Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/core/SkRadialShadowMapShader.h
diff --git a/src/core/SkRadialShadowMapShader.h b/src/core/SkRadialShadowMapShader.h
new file mode 100644
index 0000000000000000000000000000000000000000..92c3c5184afd988fc0858fbdfe359ffe6e84f592
--- /dev/null
+++ b/src/core/SkRadialShadowMapShader.h
@@ -0,0 +1,30 @@
+git mv/*
robertphillips 2016/09/07 17:11:55 git mv ?
vjiaoblack 2016/09/08 16:40:13 Done.
+ * Copyright 2016 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+
robertphillips 2016/09/07 17:11:55 SkRadialShadowMapShader_DEFINED
vjiaoblack 2016/09/08 16:40:13 Done.
+#ifndef SkSk2DShadowMapShader_DEFINED
+#define SkSk2DShadowMapShader_DEFINED
+
+#ifdef SK_EXPERIMENTAL_SHADOWING
+
+class SkLights;
+class SkShader;
+
+class SK_API SkRadialShadowMapShader {
+public:
+ /** This shader creates a 1D strip depth map for radial 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

Powered by Google App Engine
This is Rietveld 408576698