diff options
author | reed <reed@google.com> | 2015-10-06 14:05:32 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-06 14:05:32 -0700 |
commit | 5ea95df02de9cd774d0b84d1341599bbd9c0d8db (patch) | |
tree | 55b4fcd9836726d1cea4fe8fe034d8486c72f49f /gm/filterfastbounds.cpp | |
parent | 95376a0dde3cdf414eb97a20cef3af19ed7e0151 (diff) |
Revert "Revert of factories should return baseclass, allowing the impl to specialize (patchset #4 id:60001 of https://codereview.chromium.org/1390523005/ )"
This reverts commit 95376a0dde3cdf414eb97a20cef3af19ed7e0151.
BUG=skia:
TBR=
Review URL: https://codereview.chromium.org/1389083002
Diffstat (limited to 'gm/filterfastbounds.cpp')
-rw-r--r-- | gm/filterfastbounds.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gm/filterfastbounds.cpp b/gm/filterfastbounds.cpp index dcff05bfcc..d484c4211c 100644 --- a/gm/filterfastbounds.cpp +++ b/gm/filterfastbounds.cpp @@ -113,7 +113,7 @@ static void create_paints(SkImageFilter* source, SkTArray<SkPaint>* paints) { static const SkDropShadowImageFilter::ShadowMode kBoth = SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode; - SkAutoTUnref<SkDropShadowImageFilter> dsif( + SkAutoTUnref<SkImageFilter> dsif( SkDropShadowImageFilter::Create(10.0f, 10.0f, 3.0f, 3.0f, SK_ColorRED, kBoth, @@ -123,7 +123,7 @@ static void create_paints(SkImageFilter* source, SkTArray<SkPaint>* paints) { } { - SkAutoTUnref<SkDropShadowImageFilter> dsif( + SkAutoTUnref<SkImageFilter> dsif( SkDropShadowImageFilter::Create(27.0f, 27.0f, 3.0f, 3.0f, SK_ColorRED, @@ -134,13 +134,13 @@ static void create_paints(SkImageFilter* source, SkTArray<SkPaint>* paints) { } { - SkAutoTUnref<SkBlurImageFilter> bif(SkBlurImageFilter::Create(3, 3, source)); + SkAutoTUnref<SkImageFilter> bif(SkBlurImageFilter::Create(3, 3, source)); add_paint(bif, paints); } { - SkAutoTUnref<SkOffsetImageFilter> oif(SkOffsetImageFilter::Create(15, 15, source)); + SkAutoTUnref<SkImageFilter> oif(SkOffsetImageFilter::Create(15, 15, source)); add_paint(oif, paints); } @@ -246,7 +246,7 @@ protected: pic.reset(rec.endRecording()); } - SkAutoTUnref<SkPictureImageFilter> pif(SkPictureImageFilter::Create(pic)); + SkAutoTUnref<SkImageFilter> pif(SkPictureImageFilter::Create(pic)); SkTArray<SkPaint> pifPaints; create_paints(pif, &pifPaints); |