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

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

Issue 2920263002: Delete FORMAT_RGB and legacy libjpeg support from gfx::JpegCodec (Closed)
Patch Set: Fix PFQ chrome build Created 3 years, 6 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 | « media/gpu/jpeg_decode_accelerator_unittest.cc ('k') | ui/gfx/codec/jpeg_codec.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/codec/jpeg_codec.h
diff --git a/ui/gfx/codec/jpeg_codec.h b/ui/gfx/codec/jpeg_codec.h
index 5d10be59cb1e3f21dcb79e3c2677630decc2d469..fbc07903ebc8a5cae6f5b6b36dbacc119c91632f 100644
--- a/ui/gfx/codec/jpeg_codec.h
+++ b/ui/gfx/codec/jpeg_codec.h
@@ -23,10 +23,6 @@ namespace gfx {
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,
@@ -39,15 +35,6 @@ class CODEC_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
« no previous file with comments | « media/gpu/jpeg_decode_accelerator_unittest.cc ('k') | ui/gfx/codec/jpeg_codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698