Remove the option of disabling explicit resource allocation
We're burning our boats behind us. Succeed or die trying!
Change-Id: I6a9f71b758a6ae7b090c5221ab12a5ab4d166b47
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/209647
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/ops/GrCopySurfaceOp.cpp b/src/gpu/ops/GrCopySurfaceOp.cpp
index 548afb9..f2a5257 100644
--- a/src/gpu/ops/GrCopySurfaceOp.cpp
+++ b/src/gpu/ops/GrCopySurfaceOp.cpp
@@ -87,11 +87,7 @@
}
void GrCopySurfaceOp::onExecute(GrOpFlushState* state, const SkRect& chainBounds) {
- if (state->resourceProvider()->explicitlyAllocateGPUResources()) {
- SkASSERT(fSrc.get()->isInstantiated());
- } else if (!fSrc.get()->instantiate(state->resourceProvider())) {
- return;
- }
+ SkASSERT(fSrc.get()->isInstantiated());
state->commandBuffer()->copy(fSrc.get()->peekSurface(), fSrc.get()->origin(), fSrcRect,
fDstPoint);