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

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

Issue 2944633002: Use SkPngEncoder in gfx jpeg_codec (Closed)
Patch Set: Nit Created 3 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
Index: ui/gfx/codec/png_codec.h
diff --git a/ui/gfx/codec/png_codec.h b/ui/gfx/codec/png_codec.h
index 335b58affb051041b480d876cff5f13e37674489..9385492df4d14312085a5976309c713d5eeb4052 100644
--- a/ui/gfx/codec/png_codec.h
+++ b/ui/gfx/codec/png_codec.h
@@ -27,6 +27,8 @@ class Size;
// things, partially downloaded data.
class CODEC_EXPORT PNGCodec {
public:
+ static constexpr int DEFAULT_ZLIB_COMPRESSION = 6;
+
enum ColorFormat {
// 4 bytes per pixel, in RGBA order in memory regardless of endianness.
FORMAT_RGBA,
« no previous file with comments | « ui/gfx/codec/jpeg_codec.cc ('k') | ui/gfx/codec/png_codec.cc » ('j') | ui/gfx/codec/png_codec.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698