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

Unified Diff: third_party/WebKit/Source/platform/image-encoders/PNGImageEncoder.cpp

Issue 2392623002: reflow comments in platform/image-encoders (Closed)
Patch Set: Created 4 years, 2 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 | « third_party/WebKit/Source/platform/image-encoders/PNGImageEncoder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/image-encoders/PNGImageEncoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-encoders/PNGImageEncoder.cpp b/third_party/WebKit/Source/platform/image-encoders/PNGImageEncoder.cpp
index 7ff85e56843c2be5be725558b5ca0c1aa0c0ab43..b88c64cc03d08746d50be04a8ab2e7192151ed31 100644
--- a/third_party/WebKit/Source/platform/image-encoders/PNGImageEncoder.cpp
+++ b/third_party/WebKit/Source/platform/image-encoders/PNGImageEncoder.cpp
@@ -60,20 +60,25 @@ std::unique_ptr<PNGImageEncoderState> PNGImageEncoderState::create(
}
// Optimize compression for speed.
- // The parameters are the same as what libpng uses by default for RGB and RGBA images, except:
- // The zlib compression level is set to 3 instead of 6, to avoid the lazy Ziv-Lempel match searching.
+ // The parameters are the same as what libpng uses by default for RGB and RGBA
+ // images, except:
+ // The zlib compression level is set to 3 instead of 6, to avoid the lazy
+ // Ziv-Lempel match searching.
png_set_compression_level(png, 3);
- // The zlib memory level is set to 8. This actually matches the default, we are just future-proofing.
+ // The zlib memory level is set to 8. This actually matches the default, we
+ // are just future-proofing.
png_set_compression_mem_level(png, 8);
// The zlib strategy is set to Z_FILTERED, which does not match the default.
// Avoid the zlib strategies Z_HUFFMAN_ONLY or Z_RLE.
- // Although they are the fastest for poorly-compressible images (e.g. photographs),
- // they are very slow for highly-compressible images (e.g. text, drawings or business graphics)
+ // Although they are the fastest for poorly-compressible images (e.g.
+ // photographs), they are very slow for highly-compressible images (e.g. text,
+ // drawings or business graphics)
png_set_compression_strategy(png, Z_FILTERED);
- // The delta filter is PNG_FILTER_SUB instead of PNG_ALL_FILTERS, to reduce the filter computations.
+ // The delta filter is PNG_FILTER_SUB instead of PNG_ALL_FILTERS, to reduce
+ // the filter computations.
png_set_filter(png, PNG_FILTER_TYPE_BASE, PNG_FILTER_SUB);
png_set_write_fn(png, output, writeOutput, 0);
« no previous file with comments | « third_party/WebKit/Source/platform/image-encoders/PNGImageEncoder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698