diff options
author | 2017-02-15 14:19:01 -0500 | |
---|---|---|
committer | 2017-02-15 20:17:29 +0000 | |
commit | 63c67461ed07b5fca35182ac62657b2cb16afbb4 (patch) | |
tree | 461c958cfca8c01c1fba552438a6c05f9da2bb45 /include/gpu | |
parent | ca4c60f5413ba2af4ddfce7160ddd226e8738e02 (diff) |
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 <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrProcessorUnitTest.h | 6 |
1 files changed, 2 insertions, 4 deletions
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<GrTextureProxy> textureProxy(int index) { - return sk_ref_sp(fProxies[index]->asTextureProxy()); - } + sk_sp<GrTextureProxy> textureProxy(int index) { return fProxies[index]; } private: - sk_sp<GrSurfaceProxy> fProxies[2]; + sk_sp<GrTextureProxy> fProxies[2]; }; #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS |