Index: src/core/SkBitmapDevice.cpp |
diff --git a/src/core/SkBitmapDevice.cpp b/src/core/SkBitmapDevice.cpp |
index c8ac8d2d44f230b94de40aab052f947e5e942073..8a517a6f00ca870448f4d41f99d76eb21e4a2482 100644 |
--- a/src/core/SkBitmapDevice.cpp |
+++ b/src/core/SkBitmapDevice.cpp |
@@ -237,6 +237,7 @@ void SkBitmapDevice::drawPath(const SkDraw& draw, const SkPath& path, |
void SkBitmapDevice::drawBitmap(const SkDraw& draw, const SkBitmap& bitmap, |
const SkMatrix& matrix, const SkPaint& paint) { |
+ LogDrawScaleFactor(SkMatrix::Concat(*draw.fMatrix, matrix), paint.getFilterQuality()); |
draw.drawBitmap(bitmap, matrix, nullptr, paint); |
} |
@@ -257,6 +258,8 @@ void SkBitmapDevice::drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap, |
} |
matrix.setRectToRect(tmpSrc, dst, SkMatrix::kFill_ScaleToFit); |
+ LogDrawScaleFactor(SkMatrix::Concat(*draw.fMatrix, matrix), paint.getFilterQuality()); |
+ |
const SkRect* dstPtr = &dst; |
const SkBitmap* bitmapPtr = &bitmap; |