aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkImageDecoder.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2014-06-12 09:21:31 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-12 09:21:31 -0700
commit2f785a24eba5b59da30f5ffa0c53cc731e4c3078 (patch)
tree28772e398f6041eccaf259a7ccc6089197132be1 /include/core/SkImageDecoder.h
parentfb4f5cb39e31b8544b526074683a65bb716b7acf (diff)
remove GetDeviceConfig/SetDeviceConfig
BUG=skia: R=scroggo@google.com Author: reed@google.com Review URL: https://codereview.chromium.org/332453002
Diffstat (limited to 'include/core/SkImageDecoder.h')
-rw-r--r--include/core/SkImageDecoder.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/core/SkImageDecoder.h b/include/core/SkImageDecoder.h
index e8e8e01337..58920992e1 100644
--- a/include/core/SkImageDecoder.h
+++ b/include/core/SkImageDecoder.h
@@ -362,20 +362,6 @@ public:
kDecodePixels_Mode, NULL);
}
- /** Return the default config for the running device.
- Currently this used as a suggestion to image decoders that need to guess
- what config they should decode into.
- Default is kNo_Config, but this can be changed with SetDeviceConfig()
- */
- static SkBitmap::Config GetDeviceConfig();
- /** Set the default config for the running device.
- Currently this used as a suggestion to image decoders that need to guess
- what config they should decode into.
- Default is kNo_Config.
- This can be queried with GetDeviceConfig()
- */
- static void SetDeviceConfig(SkBitmap::Config);
-
protected:
// must be overridden in subclasses. This guy is called by decode(...)
virtual bool onDecode(SkStream*, SkBitmap* bitmap, Mode) = 0;
@@ -465,9 +451,6 @@ protected:
the returned bitmap. SrcDepth and hasAlpha reflect the raw data of the
src image. This routine returns the caller's preference given
srcDepth and hasAlpha, or kUnknown_SkColorType if there is no preference.
-
- Note: this also takes into account GetDeviceConfig(), so the subclass
- need not call that.
*/
SkColorType getPrefColorType(SrcDepth, bool hasAlpha) const;