diff --git a/src/gpu/GrPathRendering_none.cpp b/src/gpu/GrPathRendering_none.cpp index 048e8a3020..9e73eda7a7 100644 --- a/src/gpu/GrPathRendering_none.cpp +++ b/src/gpu/GrPathRendering_none.cpp @@ -46,11 +46,11 @@ void GrGLPathRendering::onDrawPath(const GrStencilSettings&, const GrPath*) {} void GrGLPathRendering::onStencilPath(const StencilPathArgs&, const GrPath*) {} -std::unique_ptr GrStencilPathOp::Make(GrRecordingContext*, - const SkMatrix&, - bool, - bool, - const GrScissorState&, - sk_sp) { return nullptr; } +GrOp::Owner GrStencilPathOp::Make(GrRecordingContext*, + const SkMatrix&, + bool, + bool, + const GrScissorState&, + sk_sp) { return nullptr; } void GrPath::ComputeKey(const GrStyledShape&, GrUniqueKey*, bool*) {} diff --git a/src/gpu/ops/GrOp.h b/src/gpu/ops/GrOp.h index 15f3bb43ee..a1dcd847e3 100644 --- a/src/gpu/ops/GrOp.h +++ b/src/gpu/ops/GrOp.h @@ -73,9 +73,9 @@ public: #else struct DeleteFromPool { DeleteFromPool() : fPool{nullptr} {} - DeleteFromPool(GrOpMemoryPool* pool) : fPool{pool} {} + DeleteFromPool(GrMemoryPool* pool) : fPool{pool} {} void operator() (GrOp* op); - GrOpMemoryPool* fPool; + GrMemoryPool* fPool; }; using Owner = std::unique_ptr; #endif @@ -101,7 +101,7 @@ public: template static Owner MakeWithExtraMemory( GrRecordingContext* context, size_t extraSize, Args&&... args) { - GrOpMemoryPool* pool = context->priv().opMemoryPool(); + GrMemoryPool* pool = context->priv().opMemoryPool(); void* mem = pool->allocate(sizeof(Op) + extraSize); GrOp* op = new (mem) Op(std::forward(args)...); return Owner{op, pool}; diff --git a/src/gpu/ops/GrSimpleMeshDrawOpHelper.h b/src/gpu/ops/GrSimpleMeshDrawOpHelper.h index b016050025..181249c3cf 100644 --- a/src/gpu/ops/GrSimpleMeshDrawOpHelper.h +++ b/src/gpu/ops/GrSimpleMeshDrawOpHelper.h @@ -199,7 +199,7 @@ GrOp::Owner GrOp::MakeWithProcessorSet( GrProcessorSet* processorSet = new (setMem) GrProcessorSet{std::move(paint)}; return Owner{new (bytes) Op(processorSet, color, std::forward(args)...)}; #else - GrOpMemoryPool* pool = context->priv().opMemoryPool(); + GrMemoryPool* pool = context->priv().opMemoryPool(); char* bytes = (char*)pool->allocate(sizeof(Op) + sizeof(GrProcessorSet)); char* setMem = bytes + sizeof(Op); GrProcessorSet* processorSet = new (setMem) GrProcessorSet{std::move(paint)};