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