diff options
author | sugoi <sugoi@chromium.org> | 2014-10-23 13:59:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-23 13:59:52 -0700 |
commit | 234f036b3e731e06e616c5291157d3bb4fbfdee2 (patch) | |
tree | 37acef5dcc153d42d4b3fe0351ea1f6de280fbd1 /gm/imagefiltersbase.cpp | |
parent | d0777fd2cf25fc6a1a2b010313cc4abdd7d33734 (diff) |
Adding an option to render only the shadow in SkDropShadowImageFilter
This is basically how blink uses the filter. Currently, I can't use it for "ShadowOnly" mode with the filter at all, but instead of copying the code and risking to have the codepaths diverge, I'm simply going to add the option here.
BUG=skia:
Review URL: https://codereview.chromium.org/646213004
Diffstat (limited to 'gm/imagefiltersbase.cpp')
-rw-r--r-- | gm/imagefiltersbase.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/imagefiltersbase.cpp b/gm/imagefiltersbase.cpp index d1bd5a72df..4546b8add2 100644 --- a/gm/imagefiltersbase.cpp +++ b/gm/imagefiltersbase.cpp @@ -231,7 +231,8 @@ protected: FailImageFilter::Create(), SkColorFilterImageFilter::Create(cf), SkBlurImageFilter::Create(12.0f, 0.0f), - SkDropShadowImageFilter::Create(10.0f, 5.0f, 3.0f, 3.0f, SK_ColorBLUE), + SkDropShadowImageFilter::Create(10.0f, 5.0f, 3.0f, 3.0f, SK_ColorBLUE, + SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode), }; cf->unref(); |