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

Unified Diff: src/utils/SkShadowPaintFilterCanvas.h

Issue 2224163005: Made shadows blurry (thru implementing variance mapping) (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: made req changes; needs to move blurimagefilter into core 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/utils/SkShadowPaintFilterCanvas.h
diff --git a/src/utils/SkShadowPaintFilterCanvas.h b/src/utils/SkShadowPaintFilterCanvas.h
index ae449d64f9ef873c41b7bbeb89a72d2a1577106f..214523d1b05f47f36b14995d745e55ca3aedc330 100644
--- a/src/utils/SkShadowPaintFilterCanvas.h
+++ b/src/utils/SkShadowPaintFilterCanvas.h
@@ -35,6 +35,7 @@ public:
static SkISize ComputeDepthMapSize(const SkLights::Light& light, int maxDepth,
int width, int height);
robertphillips 2016/08/16 19:36:09 setShadowParams ?
vjiaoblack 2016/08/17 12:58:56 Done.
+ void setShadowType(const SkShadowParams& params);
protected:
void onDrawPicture(const SkPicture *picture, const SkMatrix *matrix,
const SkPaint *paint) override;
@@ -105,6 +106,7 @@ protected:
void onDrawTextBlob(const SkTextBlob *blob, SkScalar x,
SkScalar y, const SkPaint &paint) override;
private:
+ SkShadowParams fShadowParams;
typedef SkPaintFilterCanvas INHERITED;
};

Powered by Google App Engine
This is Rietveld 408576698