Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: include/core/SkImageDecoder.h

Issue 372133003: remove unneeded flag for android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/skia_for_android_framework_defines.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkImageDecoder.h
diff --git a/include/core/SkImageDecoder.h b/include/core/SkImageDecoder.h
index 9ab32d7ce14eec9badacb8d0322d0af1c1080242..b73c4ff261496cca36851bf4b64eb23c214ad46f 100644
--- a/include/core/SkImageDecoder.h
+++ b/include/core/SkImageDecoder.h
@@ -354,27 +354,6 @@ public:
return DecodeStream(stream, bitmap, kUnknown_SkColorType, kDecodePixels_Mode, NULL);
}
-#ifdef SK_SUPPORT_LEGACY_IMAGEDECODER_CONFIG
- bool decode(SkStream* stream, SkBitmap* bitmap, SkBitmap::Config pref, Mode mode) {
- return this->decode(stream, bitmap, SkBitmapConfigToColorType(pref), mode);
- }
- bool decodeSubset(SkBitmap* bm, const SkIRect& subset, SkBitmap::Config pref) {
- return this->decodeSubset(bm, subset, SkBitmapConfigToColorType(pref));
- }
- static bool DecodeFile(const char file[], SkBitmap* bitmap, SkBitmap::Config pref, Mode mode,
- Format* format = NULL) {
- return DecodeFile(file, bitmap, SkBitmapConfigToColorType(pref), mode, format);
- }
- static bool DecodeMemory(const void* buffer, size_t size, SkBitmap* bitmap,
- SkBitmap::Config pref, Mode mode, Format* format = NULL) {
- return DecodeMemory(buffer, size, bitmap, SkBitmapConfigToColorType(pref), mode, format);
- }
- static bool DecodeStream(SkStreamRewindable* stream, SkBitmap* bitmap, SkBitmap::Config pref,
- Mode mode, Format* format = NULL) {
- return DecodeStream(stream, bitmap, SkBitmapConfigToColorType(pref), mode, format);
- }
-#endif
-
protected:
// must be overridden in subclasses. This guy is called by decode(...)
virtual bool onDecode(SkStream*, SkBitmap* bitmap, Mode) = 0;
« no previous file with comments | « gyp/skia_for_android_framework_defines.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698