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

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

Issue 1874403003: Tweak libpng encoding parameters to increase speed on very large images. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweaks and improve perf tests. Created 4 years, 8 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 ba8c8159c2f01f31ce124ead26e5f29e6397737a..7f2c4efd1eae8bff2ec57fca2b5572812e3b954a 100644
--- a/ui/gfx/codec/png_codec.h
+++ b/ui/gfx/codec/png_codec.h
@@ -96,6 +96,11 @@ class GFX_EXPORT PNGCodec {
bool discard_transparency,
std::vector<unsigned char>* output);
+ // Similar to FastEncodeBGRASkBitmap, but with no compression at all.
+ static bool NoCompressEncodeBGRASkBitmap(const SkBitmap& input,
+ bool discard_transparency,
+ std::vector<unsigned char>* output);
+
// Call PNGCodec::Encode on the supplied SkBitmap |input|, which is assumed
// to be kA8_Config, 8 bits per pixel. The bitmap is encoded as a grayscale
// PNG with alpha used for color intensity. The |output| param is passed

Powered by Google App Engine
This is Rietveld 408576698