diff options
author | 2017-04-06 07:59:41 -0400 | |
---|---|---|
committer | 2017-04-06 12:45:02 +0000 | |
commit | e78b7259c3d5cbed77b4390150cfb699b0b59cd4 (patch) | |
tree | b31944a68b1c88c5f87d2023157b473f01348feb /include/gpu/GrProcessorUnitTest.h | |
parent | 43b9c6bbf66b0927a99062c68dff9ea8358f82db (diff) |
Rm readPixels from GrSurface & move read/writeSurfacePixels to GrContextPriv (take 3)
This is in service of: https://skia-review.googlesource.com/c/11125/ (Add parallel proxyID to StencilOps & RenderTargetOpList) where I want a better choke point for texture creation to improve discard handling.
This is a re-reland of: https://skia-review.googlesource.com/c/11200/ (Rm readPixels from GrSurface & move read/writeSurfacePixels to GrContextPriv)
Change-Id: Icfb9dd223418dd460405efd2bfd9d1c356beed1a
Reviewed-on: https://skia-review.googlesource.com/11412
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/gpu/GrProcessorUnitTest.h')
-rw-r--r-- | include/gpu/GrProcessorUnitTest.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/gpu/GrProcessorUnitTest.h b/include/gpu/GrProcessorUnitTest.h index 912e393ca0..d6269c85bd 100644 --- a/include/gpu/GrProcessorUnitTest.h +++ b/include/gpu/GrProcessorUnitTest.h @@ -49,12 +49,12 @@ struct GrProcessorTestData { GrProcessorTestData(SkRandom* random, GrContext* context, const GrRenderTargetContext* renderTargetContext, - GrTexture* const textures[2]) + sk_sp<GrTextureProxy> proxies[2]) : fRandom(random) , fRenderTargetContext(renderTargetContext) , fContext(context) { - fProxies[0] = GrSurfaceProxy::MakeWrapped(sk_ref_sp(textures[0])); - fProxies[1] = GrSurfaceProxy::MakeWrapped(sk_ref_sp(textures[1])); + fProxies[0] = proxies[0]; + fProxies[1] = proxies[1]; } SkRandom* fRandom; const GrRenderTargetContext* fRenderTargetContext; |