aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/filterfastbounds.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-04-01 09:28:51 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-01 09:28:51 -0700
commit549c8991959333e5c0f53faebcbbd5d6bc8f6a56 (patch)
treedb498c61ef16f570f8c43b5c7bf462529134704a /gm/filterfastbounds.cpp
parentf27002947d40ab884e13d39ee2ef0ac4ccadcd6a (diff)
Update SkImageSource to sk_sp
Diffstat (limited to 'gm/filterfastbounds.cpp')
-rw-r--r--gm/filterfastbounds.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/filterfastbounds.cpp b/gm/filterfastbounds.cpp
index 8bc186e48d..9d07095855 100644
--- a/gm/filterfastbounds.cpp
+++ b/gm/filterfastbounds.cpp
@@ -277,10 +277,10 @@ protected:
}
sk_sp<SkImage> image(surface->makeImageSnapshot());
- SkAutoTUnref<SkImageFilter> imageSource(SkImageSource::Create(image.get()));
+ sk_sp<SkImageFilter> imageSource(SkImageSource::Make(std::move(image)));
SkTArray<SkPaint> bmsPaints;
- create_paints(imageSource, &bmsPaints);
+ create_paints(imageSource.get(), &bmsPaints);
//-----------
SkASSERT(paints.count() == kNumVertTiles);