diff options
author | 2015-11-23 12:32:16 -0800 | |
---|---|---|
committer | 2015-11-23 12:32:16 -0800 | |
commit | 095530389d8211895309107a4f74beefacce638c (patch) | |
tree | 6fc046d9f3bf570fb21a3ed1b1283890615a2944 /src/image/SkImage_Base.h | |
parent | 512e437e1e07159a258dd3c5b907576bd1aefc1e (diff) |
scaling API on SkPixmap
BUG=skia:4481
Review URL: https://codereview.chromium.org/1463373002
Diffstat (limited to 'src/image/SkImage_Base.h')
-rw-r--r-- | src/image/SkImage_Base.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |