Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Unified Diff: src/gpu/GrGpu.cpp

Issue 23440049: Implement stroking a path with nv_path_rendering (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/GrInOrderDrawBuffer.h » ('j') | src/gpu/gl/GrGLPath.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698