diff options
Diffstat (limited to 'src/gpu/ops/GrStencilPathOp.cpp')
-rw-r--r-- | src/gpu/ops/GrStencilPathOp.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/ops/GrStencilPathOp.cpp b/src/gpu/ops/GrStencilPathOp.cpp index 5b712cffbc..25dbf311e5 100644 --- a/src/gpu/ops/GrStencilPathOp.cpp +++ b/src/gpu/ops/GrStencilPathOp.cpp @@ -21,8 +21,10 @@ std::unique_ptr<GrOp> GrStencilPathOp::Make(GrContext* context, bool hasStencilClip, const GrScissorState& scissor, const GrPath* path) { - return std::unique_ptr<GrOp>(new GrStencilPathOp(viewMatrix, useHWAA, fillType, - hasStencilClip, scissor, path)); + GrOpMemoryPool* pool = context->contextPriv().opMemoryPool(); + + return pool->allocate<GrStencilPathOp>(viewMatrix, useHWAA, fillType, + hasStencilClip, scissor, path); } void GrStencilPathOp::onExecute(GrOpFlushState* state) { |