diff options
Diffstat (limited to 'gm/imagefilterscropexpand.cpp')
-rw-r--r-- | gm/imagefilterscropexpand.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gm/imagefilterscropexpand.cpp b/gm/imagefilterscropexpand.cpp index f1a132369a..8f36ba9041 100644 --- a/gm/imagefilterscropexpand.cpp +++ b/gm/imagefilterscropexpand.cpp @@ -88,15 +88,13 @@ protected: noopCropped, &bigRect)); - Draw(canvas, checkerboard, rect, - sk_sp<SkImageFilter>(SkDilateImageFilter::Create(2, 2, - noopCropped.get(), - &bigRect))); + Draw(canvas, checkerboard, rect, SkDilateImageFilter::Make(2, 2, + noopCropped, + &bigRect)); - Draw(canvas, checkerboard, rect, - sk_sp<SkImageFilter>(SkErodeImageFilter::Create(2, 2, - noopCropped.get(), - &bigRect))); + Draw(canvas, checkerboard, rect, SkErodeImageFilter::Make(2, 2, + noopCropped, + &bigRect)); Draw(canvas, checkerboard, rect, sk_sp<SkImageFilter>(SkDropShadowImageFilter::Create( |