Index: src/core/SkPictureImageGenerator.cpp |
diff --git a/src/core/SkPictureImageGenerator.cpp b/src/core/SkPictureImageGenerator.cpp |
index 39caa55d0cff42403efd47434b8b53d9f33de855..398c6eb5dfc77953b84451034d958b85f69c4a16 100644 |
--- a/src/core/SkPictureImageGenerator.cpp |
+++ b/src/core/SkPictureImageGenerator.cpp |
@@ -108,8 +108,7 @@ bool SkPictureImageGenerator::onGenerateScaledPixels(const SkISize& scaledSize, |
matrix.postTranslate(-SkIntToScalar(scaledOrigin.x()), -SkIntToScalar(scaledOrigin.y())); |
SkBitmap bitmap; |
- if (!bitmap.installPixels(scaledPixels.info(), scaledPixels.writable_addr(), |
- scaledPixels.rowBytes())) { |
+ if (!bitmap.installPixels(scaledPixels)) { |
return false; |
} |