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

Unified Diff: src/core/SkShadowMapShader.h

Issue 2224163005: Made shadows blurry (thru implementing variance mapping) (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 4 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/SkShadowMapShader.h
diff --git a/src/core/SkShadowShader.h b/src/core/SkShadowMapShader.h
similarity index 65%
copy from src/core/SkShadowShader.h
copy to src/core/SkShadowMapShader.h
index 163d58acd7638f444d6937e4b2402634b91d50bd..c43c4a7bbb0537457e6537201cf49c083a46081f 100644
--- a/src/core/SkShadowShader.h
+++ b/src/core/SkShadowMapShader.h
@@ -6,29 +6,24 @@
*/
-#ifndef SkShadowShader_DEFINED
-#define SkShadowShader_DEFINED
+#ifndef SkShadowMapShader_DEFINED
+#define SkShadowMapShader_DEFINED
#ifdef SK_EXPERIMENTAL_SHADOWING
class SkLights;
class SkShader;
-class SK_API SkShadowShader {
+class SK_API SkShadowMapShader {
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,
int diffuseWidth, int diffuseHeight);
- // The shadow shader supports any number of ambient lights, but only
- // 4 non-ambient lights (currently just refers to directional lights).
- static constexpr int kMaxNonAmbientLights = 4;
-
SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()
};

Powered by Google App Engine
This is Rietveld 408576698