diff options
author | 2016-11-23 09:37:01 -0500 | |
---|---|---|
committer | 2016-11-23 15:52:27 +0000 | |
commit | 45580d3e3024c1536e8e1b2017b704805442b634 (patch) | |
tree | 9ed9fe3bdc0d949ec8e83b06691b37b6ffdcc54a /src/gpu/GrOpList.h | |
parent | 07764cefbb18041a77897df3453903b0a2016583 (diff) |
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>
Diffstat (limited to 'src/gpu/GrOpList.h')
-rw-r--r-- | src/gpu/GrOpList.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gpu/GrOpList.h b/src/gpu/GrOpList.h index 9c965f8f0f..313807d63c 100644 --- a/src/gpu/GrOpList.h +++ b/src/gpu/GrOpList.h @@ -15,8 +15,10 @@ class GrAuditTrail; class GrBatchFlushState; +class GrRenderTargetOpList; class GrSurface; class GrSurfaceProxy; +class GrTextureOpList; class GrOpList : public SkRefCnt { public: @@ -62,6 +64,16 @@ public: } /* + * Safely cast this GrOpList to a GrTextureOpList (if possible). + */ + virtual GrTextureOpList* asTextureOpList() { return nullptr; } + + /* + * Safely case this GrOpList to a GrRenderTargetOpList (if possible). + */ + virtual GrRenderTargetOpList* asRenderTargetOpList() { return nullptr; } + + /* * Dump out the GrOpList dependency DAG */ SkDEBUGCODE(virtual void dump() const;) |