Rm readPixels from GrSurface & move read/writeSurfacePixels to GrContextPriv (take 3)
authorRobert Phillips <robertphillips@google.com>
Thu, 6 Apr 2017 11:59:41 +0000 (07:59 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 6 Apr 2017 12:45:02 +0000 (12:45 +0000)
commite78b7259c3d5cbed77b4390150cfb699b0b59cd4
treeb31944a68b1c88c5f87d2023157b473f01348feb
parent43b9c6bbf66b0927a99062c68dff9ea8358f82db
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>
30 files changed:
include/gpu/GrContext.h
include/gpu/GrProcessorUnitTest.h
include/gpu/GrSurface.h
src/gpu/GrContext.cpp
src/gpu/GrContextPriv.h
src/gpu/GrRenderTargetContext.cpp
src/gpu/GrResourceProvider.cpp
src/gpu/GrResourceProvider.h
src/gpu/GrSurface.cpp
src/gpu/GrSurfaceProxy.cpp
src/gpu/GrTextureContext.cpp
src/gpu/SkGr.cpp
src/gpu/effects/GrTextureStripAtlas.cpp
src/image/SkImage_Gpu.cpp
tests/BlendTest.cpp
tests/FloatingPointTextureTest.cpp
tests/GLProgramsTest.cpp
tests/GrSurfaceTest.cpp
tests/ImageFilterCacheTest.cpp
tests/ImageStorageTest.cpp
tests/IntTextureTest.cpp
tests/PackedConfigsTextureTest.cpp
tests/ProcessorTest.cpp
tests/ProxyTest.cpp
tests/ReadPixelsTest.cpp
tests/ReadWriteAlphaTest.cpp
tests/ResourceCacheTest.cpp
tests/SRGBReadWritePixelsTest.cpp
tests/TestUtils.cpp
tests/VkUploadPixelsTests.cpp