From bb9aea999c29a45fcac3fdb9ecd4a45b65f603cb Mon Sep 17 00:00:00 2001 From: "reed@android.com" Date: Thu, 24 Sep 2009 17:21:05 +0000 Subject: record dither setting so we can replay it when we (re)decode git-svn-id: http://skia.googlecode.com/svn/trunk@368 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/images/SkImageRef.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/images/SkImageRef.h b/include/images/SkImageRef.h index 6ab6e525ff..9c9896f6fc 100644 --- a/include/images/SkImageRef.h +++ b/include/images/SkImageRef.h @@ -43,6 +43,10 @@ public: */ SkImageRef(SkStream*, SkBitmap::Config config, int sampleSize = 1); virtual ~SkImageRef(); + + /** this value is passed onto the decoder. Default is true + */ + void setDitherImage(bool dither) { fDoDither = dither; } /** Return true if the image can be decoded. If so, and bitmap is non-null, call its setConfig() with the corresponding values, but explicitly will @@ -89,6 +93,7 @@ private: SkStream* fStream; SkBitmap::Config fConfig; int fSampleSize; + bool fDoDither; bool fErrorInDecoding; friend class SkImageRefPool; -- cgit v1.2.3