Index: src/core/SkDraw.cpp |
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp |
index df73f7ae3795829c09e40349a8671d805dd19d6c..af4f1ca0474fdecee56f137092f606cf31317133 100644 |
--- a/src/core/SkDraw.cpp |
+++ b/src/core/SkDraw.cpp |
@@ -59,9 +59,9 @@ public: |
fBlitter = NULL; |
} |
SkAutoBlitterChoose(const SkBitmap& device, const SkMatrix& matrix, |
- const SkPaint& paint) { |
+ const SkPaint& paint, bool drawCoverage = false) { |
fBlitter = SkBlitter::Choose(device, matrix, paint, |
- fStorage, sizeof(fStorage)); |
+ fStorage, sizeof(fStorage), drawCoverage); |
} |
~SkAutoBlitterChoose(); |
@@ -1023,7 +1023,8 @@ bool SkDrawTreatAsHairline(const SkPaint& paint, const SkMatrix& matrix, |
} |
void SkDraw::drawPath(const SkPath& origSrcPath, const SkPaint& origPaint, |
- const SkMatrix* prePathMatrix, bool pathIsMutable) const { |
+ const SkMatrix* prePathMatrix, bool pathIsMutable, |
+ bool drawCoverage) const { |
SkDEBUGCODE(this->validate();) |
// nothing to draw |
@@ -1112,7 +1113,7 @@ void SkDraw::drawPath(const SkPath& origSrcPath, const SkPaint& origPaint, |
// transform the path into device space |
pathPtr->transform(*matrix, devPathPtr); |
- SkAutoBlitterChoose blitter(*fBitmap, *fMatrix, *paint); |
+ SkAutoBlitterChoose blitter(*fBitmap, *fMatrix, *paint, drawCoverage); |
if (paint->getMaskFilter()) { |
SkPaint::Style style = doFill ? SkPaint::kFill_Style : |