Index: src/gpu/GrGpu.cpp |
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp |
index ac817f1db9593481527ac79b8d1bc5daa8a82256..47c3c8952b36977b6018a8d693cc3ab69152c698 100644 |
--- a/src/gpu/GrGpu.cpp |
+++ b/src/gpu/GrGpu.cpp |
@@ -197,10 +197,10 @@ GrIndexBuffer* GrGpu::createIndexBuffer(uint32_t size, bool dynamic) { |
return this->onCreateIndexBuffer(size, dynamic); |
} |
-GrPath* GrGpu::createPath(const SkPath& path) { |
+GrPath* GrGpu::createPath(const SkPath& path, const SkStrokeRec& stroke) { |
SkASSERT(this->caps()->pathRenderingSupport()); |
this->handleDirtyContext(); |
- return this->onCreatePath(path); |
+ return this->onCreatePath(path, stroke); |
} |
void GrGpu::clear(const SkIRect* rect, |
@@ -362,18 +362,18 @@ void GrGpu::onStencilPath(const GrPath* path, const SkStrokeRec&, SkPath::FillTy |
this->onGpuStencilPath(path, fill); |
} |
-void GrGpu::onFillPath(const GrPath* path, const SkStrokeRec& stroke, SkPath::FillType fill) { |
+void GrGpu::onDrawPath(const GrPath* path, const SkStrokeRec& stroke, SkPath::FillType fill) { |
this->handleDirtyContext(); |
this->drawState()->setPathStencilFillType(fill); |
GrDrawState::AutoRestoreEffects are; |
// TODO: Some blending effects require destination texture, see onDraw |
- if (!this->setupClipAndFlushState(kFillPath_DrawType, NULL, &are)) { |
+ if (!this->setupClipAndFlushState(kDrawPath_DrawType, NULL, &are)) { |
return; |
} |
- this->onGpuFillPath(path, fill); |
+ this->onGpuDrawPath(path, stroke, fill); |
} |
void GrGpu::finalizeReservedVertices() { |