aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2010-12-08 17:51:29 -0800
committerChet Haase <chet@google.com>2010-12-09 13:08:33 -0800
commit5db5b2ad9e26e43ee7252ab617cc511e424b9aa8 (patch)
tree478c87f5fc804dca3e075bcf82ed25f2317e1164 /include
parent270a0ffc6c4319fa95a1e2746aae0a03811fe1cc (diff)
downloadexternal_skia-5db5b2ad9e26e43ee7252ab617cc511e424b9aa8.zip
external_skia-5db5b2ad9e26e43ee7252ab617cc511e424b9aa8.tar.gz
external_skia-5db5b2ad9e26e43ee7252ab617cc511e424b9aa8.tar.bz2
Add ability to reuse bitmaps for new content
Change-Id: Ie4919c18c0b71bc1d4b3976afd7657a8fb0fc0ef
Diffstat (limited to 'include')
-rw-r--r--include/images/SkImageDecoder.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/images/SkImageDecoder.h b/include/images/SkImageDecoder.h
index 3c904ca..0f71a3f 100644
--- a/include/images/SkImageDecoder.h
+++ b/include/images/SkImageDecoder.h
@@ -205,9 +205,9 @@ public:
note: document use of Allocator, Peeker and Chooser
*/
- bool decode(SkStream*, SkBitmap* bitmap, SkBitmap::Config pref, Mode);
- bool decode(SkStream* stream, SkBitmap* bitmap, Mode mode) {
- return this->decode(stream, bitmap, SkBitmap::kNo_Config, mode);
+ bool decode(SkStream*, SkBitmap* bitmap, SkBitmap::Config pref, Mode, bool reuseBitmap = false);
+ bool decode(SkStream* stream, SkBitmap* bitmap, Mode mode, bool reuseBitmap = false) {
+ return this->decode(stream, bitmap, SkBitmap::kNo_Config, mode, reuseBitmap);
}
/**