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

Unified Diff: src/gpu/GrDrawTarget.h

Issue 23440049: Implement stroking a path with nv_path_rendering (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years, 2 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
« no previous file with comments | « no previous file | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawTarget.h
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
index 49dd3880c8fcae92a71b86f3aebb7c2ff9263c9a..feba55ea5b5cec7d84e6a80efbac2a31f6a43749 100644
--- a/src/gpu/GrDrawTarget.h
+++ b/src/gpu/GrDrawTarget.h
@@ -326,13 +326,13 @@ public:
* winding (not inverse or hairline). It will respect the HW antialias flag
* on the draw state (if possible in the 3D API).
*/
- void stencilPath(const GrPath*, const SkStrokeRec& stroke, SkPath::FillType fill);
+ void stencilPath(const GrPath*, SkPath::FillType fill);
/**
- * Fills a path. Fill must not be a hairline. It will respect the HW
+ * Draws a path. Fill must not be a hairline. It will respect the HW
* antialias flag on the draw state (if possible in the 3D API).
*/
- void fillPath(const GrPath*, const SkStrokeRec& stroke, SkPath::FillType fill);
+ void drawPath(const GrPath*, SkPath::FillType fill);
/**
* Helper function for drawing rects. It performs a geometry src push and pop
@@ -455,11 +455,11 @@ public:
void executeDraw(const DrawInfo& info) { this->onDraw(info); }
/**
- * For subclass internal use to invoke a call to onFillPath().
+ * For subclass internal use to invoke a call to onDrawPath().
*/
- void executeFillPath(const GrPath* path, const SkStrokeRec& stroke,
- SkPath::FillType fill, const GrDeviceCoordTexture* dstCopy) {
- this->onFillPath(path, stroke, fill, dstCopy);
+ void executeDrawPath(const GrPath* path, SkPath::FillType fill,
+ const GrDeviceCoordTexture* dstCopy) {
+ this->onDrawPath(path, fill, dstCopy);
}
////////////////////////////////////////////////////////////////////////////
@@ -838,8 +838,9 @@ private:
const SkMatrix* matrix,
const SkRect* localRect,
const SkMatrix* localMatrix);
- virtual void onStencilPath(const GrPath*, const SkStrokeRec& stroke, SkPath::FillType fill) = 0;
- virtual void onFillPath(const GrPath*, const SkStrokeRec& stroke, SkPath::FillType fill,
+
+ virtual void onStencilPath(const GrPath*, SkPath::FillType) = 0;
+ virtual void onDrawPath(const GrPath*, SkPath::FillType,
const GrDeviceCoordTexture* dstCopy) = 0;
// helpers for reserving vertex and index space.
« no previous file with comments | « no previous file | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698