aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/codec/SkAndroidCodec.h
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@chromium.org>2015-11-04 04:31:12 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-04 04:31:12 -0800
commite95a06883b6d9972ea58c4e16f772bb88af393e9 (patch)
treed96d0f143a434607236f28db000d022db47d7b51 /include/codec/SkAndroidCodec.h
parent07b41eb962fdb007f788fcd82e338d7aef126064 (diff)
Make AndroidOptions const
Make the struct passed to SkAndroidCodec::getAndroidPixels const. This matches SkCodec, and makes sense, since it is not used as an output. Brought up in crrev.com/1417583009 Review URL: https://codereview.chromium.org/1411693005
Diffstat (limited to 'include/codec/SkAndroidCodec.h')
-rw-r--r--include/codec/SkAndroidCodec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/codec/SkAndroidCodec.h b/include/codec/SkAndroidCodec.h
index 42e7fa8b9f..e33116f9ba 100644
--- a/include/codec/SkAndroidCodec.h
+++ b/include/codec/SkAndroidCodec.h
@@ -192,7 +192,7 @@ public:
// this getPixels() when it is a slightly different API than SkCodec's getPixels().
// Maybe this should be decode() or decodeSubset()?
SkCodec::Result getAndroidPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
- AndroidOptions* options);
+ const AndroidOptions* options);
/**
* Simplified version of getAndroidPixels() where we supply the default AndroidOptions.
@@ -213,7 +213,7 @@ protected:
virtual bool onGetSupportedSubset(SkIRect* desiredSubset) const = 0;
virtual SkCodec::Result onGetAndroidPixels(const SkImageInfo& info, void* pixels,
- size_t rowBytes, AndroidOptions& options) = 0;
+ size_t rowBytes, const AndroidOptions& options) = 0;
private: