aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image/SkImage_Base.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-11-23 12:32:16 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-23 12:32:16 -0800
commit095530389d8211895309107a4f74beefacce638c (patch)
tree6fc046d9f3bf570fb21a3ed1b1283890615a2944 /src/image/SkImage_Base.h
parent512e437e1e07159a258dd3c5b907576bd1aefc1e (diff)
scaling API on SkPixmap
Diffstat (limited to 'src/image/SkImage_Base.h')
-rw-r--r--src/image/SkImage_Base.h4
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;