Added GrSurfaceContext and GrTextureContext
authorBrian Osman <brianosman@google.com>
Wed, 23 Nov 2016 14:37:01 +0000 (09:37 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 23 Nov 2016 15:52:27 +0000 (15:52 +0000)
commit45580d3e3024c1536e8e1b2017b704805442b634
tree9ed9fe3bdc0d949ec8e83b06691b37b6ffdcc54a
parent07764cefbb18041a77897df3453903b0a2016583
Added GrSurfaceContext and GrTextureContext

This lets copy-to-texture to be treated like copy-to-rt.
To match current behavior, though, copies to texture are
still executed immediately (forcing a flush).

Once MDB is enabled, copies to texture will be deferred.

BUG=skia:

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=5093

Change-Id: Icc0ce5435507a5f0a237c22eedef879824952367
Reviewed-on: https://skia-review.googlesource.com/5093
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
20 files changed:
gn/gpu.gni
include/gpu/GrRenderTarget.h
include/gpu/GrRenderTargetContext.h
include/gpu/GrSurfaceContext.h [new file with mode: 0644]
include/gpu/GrTextureContext.h [new file with mode: 0644]
include/private/GrRenderTargetProxy.h
include/private/GrSurfaceProxy.h
include/private/GrTextureProxy.h
src/gpu/GrContext.cpp
src/gpu/GrContextPriv.h
src/gpu/GrDrawingManager.cpp
src/gpu/GrDrawingManager.h
src/gpu/GrOpList.h
src/gpu/GrRenderTargetContext.cpp
src/gpu/GrRenderTargetOpList.h
src/gpu/GrRenderTargetProxy.cpp
src/gpu/GrSurfaceContext.cpp [new file with mode: 0644]
src/gpu/GrSurfaceProxy.cpp
src/gpu/GrTextureContext.cpp [new file with mode: 0644]
src/gpu/GrTextureOpList.h