diff options
author | 2017-04-04 16:50:22 -0400 | |
---|---|---|
committer | 2017-04-05 11:55:35 +0000 | |
commit | fb0bd98a43fa11e09705837418167dd72bb4a361 (patch) | |
tree | 67579cf4663c41d4b9ec36bbd61020aa3ccbe57f /include/gpu/GrProcessorUnitTest.h | |
parent | be5387b9308ad0b92a48a1272b618b6eaa08a771 (diff) |
Rm readPixels from GrSurface & move read/writeSurfacePixels to GrContextPriv
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.
Change-Id: If57a7de47edc0853dae7bc61337d9acdc03d63b0
Reviewed-on: https://skia-review.googlesource.com/11200
Reviewed-by: Brian Salomon <bsalomon@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; |