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 --- include/gpu/GrProcessorUnitTest.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/gpu/GrProcessorUnitTest.h') diff --git a/include/gpu/GrProcessorUnitTest.h b/include/gpu/GrProcessorUnitTest.h index 748a522c57..0f7e8e8d7c 100644 --- a/include/gpu/GrProcessorUnitTest.h +++ b/include/gpu/GrProcessorUnitTest.h @@ -64,12 +64,10 @@ struct GrProcessorTestData { GrContext* context() { return fContext; } GrTexture* texture(int index) { return fTextures[index]; } - sk_sp textureProxy(int index) { - return sk_ref_sp(fProxies[index]->asTextureProxy()); - } + sk_sp textureProxy(int index) { return fProxies[index]; } private: - sk_sp fProxies[2]; + sk_sp fProxies[2]; }; #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS -- cgit v1.2.3