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

Unified Diff: printing/image.cc

Issue 6696085: Add the ability to write comments to PNGCodec::Encode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with webkit_support function Created 9 years, 9 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: printing/image.cc
diff --git a/printing/image.cc b/printing/image.cc
index 2f5d7e3e89d50e76c4370fd1f0f4d9153813fbe3..425ec6267a1fbc6950d8bdf9c71484c65d4d830a 100644
--- a/printing/image.cc
+++ b/printing/image.cc
@@ -60,10 +60,10 @@ bool Image::SaveToPng(const FilePath& filepath) const {
std::vector<unsigned char> compressed;
bool success = gfx::PNGCodec::Encode(&*data_.begin(),
gfx::PNGCodec::FORMAT_BGRA,
- size_.width(),
- size_.height(),
+ size_,
row_length_,
true,
+ std::vector<gfx::PNGCodec::Comment>(),
&compressed);
DCHECK(success && compressed.size());
if (success) {

Powered by Google App Engine
This is Rietveld 408576698