diff options
author | robertphillips <robertphillips@google.com> | 2016-04-01 09:28:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-01 09:28:51 -0700 |
commit | 549c8991959333e5c0f53faebcbbd5d6bc8f6a56 (patch) | |
tree | db498c61ef16f570f8c43b5c7bf462529134704a /gm/filterfastbounds.cpp | |
parent | f27002947d40ab884e13d39ee2ef0ac4ccadcd6a (diff) |
Update SkImageSource to sk_sp
TBR=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1842243002
Review URL: https://codereview.chromium.org/1842243002
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 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); |