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

Unified Diff: src/core/SkShadowShader.h

Issue 2118553002: adding new GM to demostrate new shadows (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: made req changes Created 4 years, 5 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/SkShadowShader.h
diff --git a/src/core/SkShadowShader.h b/src/core/SkShadowShader.h
new file mode 100644
index 0000000000000000000000000000000000000000..3502f807fc053916e6fc0a371c3609b831f235e7
--- /dev/null
+++ b/src/core/SkShadowShader.h
@@ -0,0 +1,27 @@
+/*
+ * 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 SkShadowShader_DEFINED
+#define SkShadowShader_DEFINED
+
+class SkLights;
+class SkShader;
+
+class SK_API SkShadowShader {
+public:
+ /** This shader combines the diffuse color in 'diffuseShader' with the shadows
+ * determined by the 'povDepthShader' and the shadow maps stored in each of the
+ * lights in 'lights'
+ */
+ static sk_sp<SkShader> Make(sk_sp<SkShader> povDepthShader,
+ sk_sp<SkShader> diffuseShader,
+ sk_sp<SkLights> lights);
+
+ SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()
+};
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698