diff options
author | Robert Phillips <robertphillips@google.com> | 2017-01-31 11:31:39 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-31 17:22:38 +0000 |
commit | 6de99041f13e87ed440f7db13a07693c6c4c461a (patch) | |
tree | 560cfdcc0efb88cd82f04b2c9b0219f2f3d07c71 /gm/image_pict.cpp | |
parent | 6d3b7aaf79b2cbacdf00bafc15ded2dfd2fa000a (diff) |
Reduce use of SkImage_Base::peekTexture
Change-Id: I079093c9706df4911d47fba04b786e59240e8cb4
Reviewed-on: https://skia-review.googlesource.com/7792
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'gm/image_pict.cpp')
-rw-r--r-- | gm/image_pict.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/image_pict.cpp b/gm/image_pict.cpp index 7ddc84ddb3..c168bc9fb9 100644 --- a/gm/image_pict.cpp +++ b/gm/image_pict.cpp @@ -226,7 +226,7 @@ public: surface->getCanvas()->translate(-100, -100); surface->getCanvas()->drawPicture(pic); sk_sp<SkImage> image(surface->makeImageSnapshot()); - fProxy = GrSurfaceProxy::MakeWrapped(sk_ref_sp(as_IB(image)->peekTexture())); + fProxy = as_IB(image)->asTextureProxyRef(); } } protected: |