diff options
Diffstat (limited to 'gm/filterfastbounds.cpp')
-rw-r--r-- | gm/filterfastbounds.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/filterfastbounds.cpp b/gm/filterfastbounds.cpp index 453dded8cc..9623e4265b 100644 --- a/gm/filterfastbounds.cpp +++ b/gm/filterfastbounds.cpp @@ -275,8 +275,8 @@ protected: temp->drawRect(SkRect::MakeLTRB(5, 0, 10, 5), p); } - SkAutoTUnref<SkImage> image(surface->newImageSnapshot()); - SkAutoTUnref<SkImageFilter> imageSource(SkImageSource::Create(image)); + sk_sp<SkImage> image(surface->makeImageSnapshot()); + SkAutoTUnref<SkImageFilter> imageSource(SkImageSource::Create(image.get())); SkTArray<SkPaint> bmsPaints; create_paints(imageSource, &bmsPaints); |