diff options
author | reed <reed@google.com> | 2015-10-06 11:12:23 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-06 11:12:23 -0700 |
commit | 80a6dcaa1b757826ed7414f64b035d512d9ccbf8 (patch) | |
tree | b77fa8cf50e6954995bf8e53cf0bf07ba72e6544 /gm/bigtileimagefilter.cpp | |
parent | 85f0d5d6e6a8ae2d5bdfb784fdf426a89dad2c0e (diff) |
factories should return baseclass, allowing the impl to specialize
waiting on https://codereview.chromium.org/1386163002/# to land
BUG=skia:4424
Review URL: https://codereview.chromium.org/1390523005
Diffstat (limited to 'gm/bigtileimagefilter.cpp')
-rw-r--r-- | gm/bigtileimagefilter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/bigtileimagefilter.cpp b/gm/bigtileimagefilter.cpp index 20c462b744..f2164e8e2f 100644 --- a/gm/bigtileimagefilter.cpp +++ b/gm/bigtileimagefilter.cpp @@ -56,7 +56,7 @@ protected: SkRect bound = SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight)); SkAutoTUnref<SkImageFilter> imageSource(SkImageSource::Create(fRedImage)); - SkAutoTUnref<SkTileImageFilter> tif(SkTileImageFilter::Create( + SkAutoTUnref<SkImageFilter> tif(SkTileImageFilter::Create( SkRect::MakeWH(SkIntToScalar(kBitmapSize), SkIntToScalar(kBitmapSize)), SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight)), imageSource)); @@ -71,7 +71,7 @@ protected: SkRect bound2 = SkRect::MakeWH(SkIntToScalar(kBitmapSize), SkIntToScalar(kBitmapSize)); - SkAutoTUnref<SkTileImageFilter> tif2(SkTileImageFilter::Create( + SkAutoTUnref<SkImageFilter> tif2(SkTileImageFilter::Create( SkRect::MakeWH(SkIntToScalar(kBitmapSize), SkIntToScalar(kBitmapSize)), SkRect::MakeWH(SkIntToScalar(kBitmapSize), SkIntToScalar(kBitmapSize)), nullptr)); |