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 --- src/images/SkImageRef.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/images') diff --git a/src/images/SkImageRef.cpp b/src/images/SkImageRef.cpp index cff57aa32b..7ef5f40418 100644 --- a/src/images/SkImageRef.cpp +++ b/src/images/SkImageRef.cpp @@ -19,6 +19,7 @@ SkImageRef::SkImageRef(SkStream* stream, SkBitmap::Config config, fStream = stream; fConfig = config; fSampleSize = sampleSize; + fDoDither = true; fPrev = fNext = NULL; fFactory = NULL; @@ -104,6 +105,7 @@ bool SkImageRef::prepareBitmap(SkImageDecoder::Mode mode) { SkAutoTDelete ad(codec); codec->setSampleSize(fSampleSize); + codec->setDitherImage(fDoDither); if (this->onDecode(codec, fStream, &fBitmap, fConfig, mode)) { return true; } -- cgit v1.2.3