Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index a4acbdc94d118e2d6fe1b3cee023416f4a9efe28..e5ca9ce6c13f4edd40a2c2da396bdba99f6e35fa 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -2220,7 +2220,8 @@ |
} |
const SkMatrix& ctm = this->getTotalMatrix(); |
- if (!SkTreatAsSprite(ctm, SkISize::Make(w, h), paint)) { |
+ const unsigned kSubpixelBits = 0; // matching SkDraw::drawBitmap() |
+ if (!SkTreatAsSprite(ctm, w, h, kSubpixelBits)) { |
return false; |
} |