From 6de99041f13e87ed440f7db13a07693c6c4c461a Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Tue, 31 Jan 2017 11:31:39 -0500 Subject: Reduce use of SkImage_Base::peekTexture Change-Id: I079093c9706df4911d47fba04b786e59240e8cb4 Reviewed-on: https://skia-review.googlesource.com/7792 Reviewed-by: Brian Salomon Commit-Queue: Robert Phillips --- gm/image_pict.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gm/image_pict.cpp') 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 image(surface->makeImageSnapshot()); - fProxy = GrSurfaceProxy::MakeWrapped(sk_ref_sp(as_IB(image)->peekTexture())); + fProxy = as_IB(image)->asTextureProxyRef(); } } protected: -- cgit v1.2.3