From 63c67461ed07b5fca35182ac62657b2cb16afbb4 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Wed, 15 Feb 2017 14:19:01 -0500 Subject: Tighten up GrSurfaceProxy typing This may reduce the number of "why not GrTextureProxy" issues Change-Id: I9e0e5042f5801ba9a933b697a380cb0cb54b4522 Reviewed-on: https://skia-review.googlesource.com/8510 Commit-Queue: Robert Phillips Reviewed-by: Brian Salomon --- tests/SpecialImageTest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/SpecialImageTest.cpp') diff --git a/tests/SpecialImageTest.cpp b/tests/SpecialImageTest.cpp index 94683a0cdf..e2e4990d12 100644 --- a/tests/SpecialImageTest.cpp +++ b/tests/SpecialImageTest.cpp @@ -324,7 +324,8 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SpecialImage_DeferredGpu, reporter, ctxInfo) context, SkIRect::MakeWH(kFullSize, kFullSize), kNeedNewImageUniqueID_SpecialImage, - proxy, nullptr)); + sk_ref_sp(proxy->asTextureProxy()), + nullptr)); const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); @@ -333,7 +334,8 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SpecialImage_DeferredGpu, reporter, ctxInfo) context, subset, kNeedNewImageUniqueID_SpecialImage, - proxy, nullptr)); + sk_ref_sp(proxy->asTextureProxy()), + nullptr)); test_image(subSImg1, reporter, context, true, kPad, kFullSize); } -- cgit v1.2.3