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