Index: src/gpu/batches/GrDrawPathBatch.h |
diff --git a/src/gpu/batches/GrDrawPathBatch.h b/src/gpu/batches/GrDrawPathBatch.h |
index cfdbc02c3d6eec094b438497450cb250f19fe944..33bf678eb521de098a39d552a43c3931b50955c0 100644 |
--- a/src/gpu/batches/GrDrawPathBatch.h |
+++ b/src/gpu/batches/GrDrawPathBatch.h |
@@ -64,9 +64,8 @@ class GrDrawPathBatch final : public GrDrawPathBatchBase { |
public: |
DEFINE_BATCH_CLASS_ID |
- static GrDrawBatch* Create(const SkMatrix& viewMatrix, GrColor color, |
- GrPathRendering::FillType fill, const GrPath* path) { |
- return new GrDrawPathBatch(viewMatrix, color, fill, path); |
+ static GrDrawBatch* Create(const SkMatrix& viewMatrix, GrColor color, const GrPath* path) { |
+ return new GrDrawPathBatch(viewMatrix, color, path); |
} |
const char* name() const override { return "DrawPath"; } |
@@ -74,9 +73,8 @@ public: |
SkString dumpInfo() const override; |
private: |
- GrDrawPathBatch(const SkMatrix& viewMatrix, GrColor color, GrPathRendering::FillType fill, |
- const GrPath* path) |
- : INHERITED(ClassID(), viewMatrix, color, fill) |
+ GrDrawPathBatch(const SkMatrix& viewMatrix, GrColor color, const GrPath* path) |
+ : INHERITED(ClassID(), viewMatrix, color, path->getFillType()) |
, fPath(path) { |
this->setTransformedBounds(path->getBounds(), viewMatrix, HasAABloat::kNo, IsZeroArea::kNo); |
} |