Index: src/gpu/GrDrawTarget.h |
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h |
index 5b1954609cf2fdcce13c41e05fd1493ddaf3e7e1..18df018401708f1997838bdbbf9e47371e5d9763 100644 |
--- a/src/gpu/GrDrawTarget.h |
+++ b/src/gpu/GrDrawTarget.h |
@@ -328,6 +328,13 @@ public: |
void stencilPath(const GrPath*, const SkStrokeRec& stroke, SkPath::FillType fill); |
/** |
Mark Kilgard
2013/09/13 15:42:24
Kimmo, I notice other method explanation comments
Chris Dalton
2013/09/13 19:49:58
About a year ago the convention changed from 80 li
bsalomon
2013/09/13 20:25:28
In practice it's not quite so strict as whole-file
Kimmo Kinnunen
2013/09/18 07:52:38
Done.
|
+ * Draws a path definedy by the path and the bits in the stencil buffer. The fill must be |
+ * either even/odd or winding (not inverse or hairline). It will respect the HW antialias flag |
+ * on the draw state (if possible in the 3D API). |
+ */ |
+ void drawPath(const GrPath*, const SkStrokeRec& stroke, SkPath::FillType fill); |
Mark Kilgard
2013/09/13 15:42:24
Really drawPath is filling the path so does fillPa
Kimmo Kinnunen
2013/09/18 07:52:38
The fillPath does not seem to differ that signific
|
+ |
+ /** |
* Helper function for drawing rects. It performs a geometry src push and pop |
* and thus will finalize any reserved geometry. |
* |
@@ -833,6 +840,7 @@ private: |
const SkRect* localRect, |
const SkMatrix* localMatrix); |
virtual void onStencilPath(const GrPath*, const SkStrokeRec& stroke, SkPath::FillType fill) = 0; |
+ virtual void onDrawPath(const GrPath*, const SkStrokeRec& stroke, SkPath::FillType fill) = 0; |
// helpers for reserving vertex and index space. |
bool reserveVertexSpace(size_t vertexSize, |