Index: src/image/SkImage_Generator.cpp |
diff --git a/src/image/SkImage_Generator.cpp b/src/image/SkImage_Generator.cpp |
index 346528939ab67b88e52cb1cd646119078ae1a4b6..e97cafe2523769b465b3dbce8380ae4e556c480d 100644 |
--- a/src/image/SkImage_Generator.cpp |
+++ b/src/image/SkImage_Generator.cpp |
@@ -26,7 +26,7 @@ public: |
SkData* onRefEncoded() const override; |
bool isOpaque() const override { return fCache->info().isOpaque(); } |
SkImage* onNewSubset(const SkIRect&) const override; |
- bool getROPixels(SkBitmap*) const override; |
+ bool getROPixels(SkBitmap*, SkScalar = SK_Scalar1) const override; |
GrTexture* asTextureRef(GrContext*, const GrTextureParams&) const override; |
bool onIsLazyGenerated() const override { return true; } |
@@ -55,8 +55,8 @@ SkData* SkImage_Generator::onRefEncoded() const { |
return fCache->refEncoded(); |
} |
-bool SkImage_Generator::getROPixels(SkBitmap* bitmap) const { |
- return fCache->lockAsBitmap(bitmap, this); |
+bool SkImage_Generator::getROPixels(SkBitmap* bitmap, SkScalar scaleHint) const { |
+ return fCache->lockAsBitmap(bitmap, this, scaleHint); |
} |
GrTexture* SkImage_Generator::asTextureRef(GrContext* ctx, const GrTextureParams& params) const { |