| Index: ui/gfx/codec/jpeg_codec.h
|
| diff --git a/ui/gfx/codec/jpeg_codec.h b/ui/gfx/codec/jpeg_codec.h
|
| index fbc07903ebc8a5cae6f5b6b36dbacc119c91632f..5d10be59cb1e3f21dcb79e3c2677630decc2d469 100644
|
| --- a/ui/gfx/codec/jpeg_codec.h
|
| +++ b/ui/gfx/codec/jpeg_codec.h
|
| @@ -23,6 +23,10 @@
|
| class CODEC_EXPORT JPEGCodec {
|
| public:
|
| enum ColorFormat {
|
| + // 3 bytes per pixel (packed), in RGB order regardless of endianness.
|
| + // This is the native JPEG format.
|
| + FORMAT_RGB,
|
| +
|
| // 4 bytes per pixel, in RGBA order in mem regardless of endianness.
|
| FORMAT_RGBA,
|
|
|
| @@ -34,6 +38,15 @@
|
| // order in kARGB_8888_Config skia bitmap.
|
| 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
|
|
|