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

Unified Diff: ui/gfx/codec/jpeg_codec.h

Issue 10912019: Enable robust decoding of custom wallpaper and allow custom wallpaper on login page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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
Index: ui/gfx/codec/jpeg_codec.h
diff --git a/ui/gfx/codec/jpeg_codec.h b/ui/gfx/codec/jpeg_codec.h
index 2c886ebc6244441f5660968cc1918f27fc49756e..e4edeee2236757c4c22c02df1007f14728d9359d 100644
--- a/ui/gfx/codec/jpeg_codec.h
+++ b/ui/gfx/codec/jpeg_codec.h
@@ -37,6 +37,15 @@ class UI_EXPORT JPEGCodec {
FORMAT_SkBitmap
};
+ enum LibraryVariant {
+ SYSTEM_LIBJPEG = 0,
+ LIBJPEG_TURBO,
+ IJG_LIBJPEG,
+ };
+
+ // This method helps identify at run time which library chromium is using.
+ static LibraryVariant JpegLibraryVariant();
+
// Encodes the given raw 'input' data, with each pixel being represented as
// given in 'format'. The encoded JPEG data will be written into the supplied
// vector and true will be returned on success. On failure (false), the

Powered by Google App Engine
This is Rietveld 408576698