Index: src/image/SkImage_Base.h |
diff --git a/src/image/SkImage_Base.h b/src/image/SkImage_Base.h |
index 3fe3444aef976245979dd886349fe561dc2c077e..f8dd810a36e83c134d0a975d2e23f6565d7118e1 100644 |
--- a/src/image/SkImage_Base.h |
+++ b/src/image/SkImage_Base.h |
@@ -34,8 +34,9 @@ public: |
virtual GrTexture* peekTexture() const { return nullptr; } |
// return a read-only copy of the pixels. We promise to not modify them, |
- // but only inspect them (or encode them). |
- virtual bool getROPixels(SkBitmap*) const = 0; |
+ // but only inspect them (or encode them). scaleHint (0 < defines lowest |
+ // acceptable (meaning smaller won't be provided) scale for requested bitmap. |
+ virtual bool getROPixels(SkBitmap*, SkScalar scaleHint = SK_Scalar1) const = 0; |
virtual SkImage* onApplyFilter(SkImageFilter*, SkIPoint* offset, |
bool forceResultToOriginalSize) const; |