aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/ops/GrCopySurfaceOp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/ops/GrCopySurfaceOp.cpp')
-rw-r--r--src/gpu/ops/GrCopySurfaceOp.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gpu/ops/GrCopySurfaceOp.cpp b/src/gpu/ops/GrCopySurfaceOp.cpp
index a90579bdfe..da8e910025 100644
--- a/src/gpu/ops/GrCopySurfaceOp.cpp
+++ b/src/gpu/ops/GrCopySurfaceOp.cpp
@@ -78,9 +78,8 @@ std::unique_ptr<GrOp> GrCopySurfaceOp::Make(GrContext* context,
return nullptr;
}
- GrOpMemoryPool* pool = context->contextPriv().opMemoryPool();
-
- return pool->allocate<GrCopySurfaceOp>(dstProxy, srcProxy, clippedSrcRect, clippedDstPoint);
+ return std::unique_ptr<GrOp>(new GrCopySurfaceOp(dstProxy, srcProxy,
+ clippedSrcRect, clippedDstPoint));
}
void GrCopySurfaceOp::onExecute(GrOpFlushState* state) {