Index: src/gpu/GrDrawTarget.h |
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h |
index 5b1954609cf2fdcce13c41e05fd1493ddaf3e7e1..93f776c74f601054bd227517a09e4af48a4d853b 100644 |
--- a/src/gpu/GrDrawTarget.h |
+++ b/src/gpu/GrDrawTarget.h |
@@ -328,6 +328,12 @@ public: |
void stencilPath(const GrPath*, const SkStrokeRec& stroke, SkPath::FillType fill); |
/** |
+ * Fills 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); |
+ |
+ /** |
* Helper function for drawing rects. It performs a geometry src push and pop |
* and thus will finalize any reserved geometry. |
* |
@@ -833,6 +839,7 @@ private: |
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) = 0; |
// helpers for reserving vertex and index space. |
bool reserveVertexSpace(size_t vertexSize, |