diff options
author | Robert Phillips <robertphillips@google.com> | 2017-09-13 15:25:47 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-13 19:49:47 +0000 |
commit | 09dfc4759e99229e7c74891a88596e8b9b3d9026 (patch) | |
tree | 29131ab740739a098a8cd19f103a08a711394605 /src/gpu/GrOpList.cpp | |
parent | b493eebca14aefbd5f22fb5d45ba978b19db4b18 (diff) |
Pull non-substantive changes out of explicit GPU resource allocation CL
Change-Id: Ib6a289553ecd15c722599b7dc0d347a7800801cb
Reviewed-on: https://skia-review.googlesource.com/46284
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrOpList.cpp')
-rw-r--r-- | src/gpu/GrOpList.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrOpList.cpp b/src/gpu/GrOpList.cpp index 521beea743..17b0f10ebf 100644 --- a/src/gpu/GrOpList.cpp +++ b/src/gpu/GrOpList.cpp @@ -31,6 +31,7 @@ GrOpList::GrOpList(GrResourceProvider* resourceProvider, fTarget.setProxy(sk_ref_sp(surfaceProxy), kWrite_GrIOType); fTarget.get()->setLastOpList(this); +#ifndef MDB_ALLOC_RESOURCES // MDB TODO: remove this! We are currently moving to having all the ops that target // the RT as a dest (e.g., clear, etc.) rely on the opList's 'fTarget' pointer // for the IO Ref. This works well but until they are all swapped over (and none @@ -39,6 +40,7 @@ GrOpList::GrOpList(GrResourceProvider* resourceProvider, // re-use assumptions. fTarget.get()->instantiate(resourceProvider); fTarget.markPendingIO(); +#endif } GrOpList::~GrOpList() { @@ -101,6 +103,10 @@ void GrOpList::addDependency(GrSurfaceProxy* dependedOn, const GrCaps& caps) { } #ifdef SK_DEBUG +bool GrOpList::isInstantiated() const { + return fTarget.get()->priv().isInstantiated(); +} + void GrOpList::dump() const { SkDebugf("--------------------------------------------------------------\n"); SkDebugf("node: %d -> RT: %d\n", fUniqueID, fTarget.get() ? fTarget.get()->uniqueID().asUInt() |