aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrOpList.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-12-01 15:32:35 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-01 21:10:39 +0000
commit51b20f266fbfa9d074bca9ce949d35f10340a9b4 (patch)
tree91ca14b2534b268cec006d8344299541d9016c6d /src/gpu/GrOpList.cpp
parentec727c981dd7ed83e98c7713c2828c6ab144937b (diff)
Add explicit GPU resource allocation of deferred proxies
Change-Id: I5d5f5ca830feba143f494c25344f8614a88cb2cc Reviewed-on: https://skia-review.googlesource.com/79220 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/gpu/GrOpList.cpp')
-rw-r--r--src/gpu/GrOpList.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/GrOpList.cpp b/src/gpu/GrOpList.cpp
index 8fe053172e..b63e96ca26 100644
--- a/src/gpu/GrOpList.cpp
+++ b/src/gpu/GrOpList.cpp
@@ -67,7 +67,11 @@ void GrOpList::endFlush() {
void GrOpList::instantiateDeferredProxies(GrResourceProvider* resourceProvider) {
for (int i = 0; i < fDeferredProxies.count(); ++i) {
+#ifdef SK_DISABLE_EXPLICIT_GPU_RESOURCE_ALLOCATION
fDeferredProxies[i]->instantiate(resourceProvider);
+#else
+ SkASSERT(fDeferredProxies[i]->priv().isInstantiated());
+#endif
}
}