diff options
Diffstat (limited to 'src/gpu/ops/GrShadowRRectOp.cpp')
-rw-r--r-- | src/gpu/ops/GrShadowRRectOp.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/gpu/ops/GrShadowRRectOp.cpp b/src/gpu/ops/GrShadowRRectOp.cpp index a2ec23000d..f61d11dd53 100644 --- a/src/gpu/ops/GrShadowRRectOp.cpp +++ b/src/gpu/ops/GrShadowRRectOp.cpp @@ -678,12 +678,14 @@ std::unique_ptr<GrDrawOp> Make(GrContext* context, SkScalar scaledRadius = SkScalarAbs(radius*matrixFactor); SkScalar scaledInsetWidth = SkScalarAbs(insetWidth*matrixFactor); - return std::unique_ptr<GrDrawOp>(new ShadowCircularRRectOp(color, bounds, - scaledRadius, - rrect.isOval(), - blurWidth, - scaledInsetWidth, - blurClamp)); + GrOpMemoryPool* pool = context->contextPriv().opMemoryPool(); + + return pool->allocate<ShadowCircularRRectOp>(color, bounds, + scaledRadius, + rrect.isOval(), + blurWidth, + scaledInsetWidth, + blurClamp); } } |