From 095530389d8211895309107a4f74beefacce638c Mon Sep 17 00:00:00 2001 From: reed Date: Mon, 23 Nov 2015 12:32:16 -0800 Subject: scaling API on SkPixmap BUG=skia:4481 Review URL: https://codereview.chromium.org/1463373002 --- src/image/SkImage_Base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/image/SkImage_Base.h') diff --git a/src/image/SkImage_Base.h b/src/image/SkImage_Base.h index 3fe3444aef..c91430e5bd 100644 --- a/src/image/SkImage_Base.h +++ b/src/image/SkImage_Base.h @@ -29,13 +29,13 @@ public: // Default impl calls onDraw virtual bool onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, - int srcX, int srcY) const; + int srcX, int srcY, CachingHint) const; 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; + virtual bool getROPixels(SkBitmap*, CachingHint = kAllow_CachingHint) const = 0; virtual SkImage* onApplyFilter(SkImageFilter*, SkIPoint* offset, bool forceResultToOriginalSize) const; -- cgit v1.2.3