diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-28 18:24:21 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-28 18:24:21 +0000 |
commit | c99fcf5a1913cea79dbf53cc5ca3dba8e3ee5d64 (patch) | |
tree | ec671064fb18a8e0cf198c514680ea6f86ecc345 /printing/image.cc | |
parent | a6e70b07a557d6c1765df2560c0104a9033c4015 (diff) | |
download | chromium_src-c99fcf5a1913cea79dbf53cc5ca3dba8e3ee5d64.zip chromium_src-c99fcf5a1913cea79dbf53cc5ca3dba8e3ee5d64.tar.gz chromium_src-c99fcf5a1913cea79dbf53cc5ca3dba8e3ee5d64.tar.bz2 |
Add the ability to write comments to PNGCodec::Encode.
I'm going to use this to write layout test checksums to the
expected png files.
Review URL: http://codereview.chromium.org/6696085
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/image.cc')
-rw-r--r-- | printing/image.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/printing/image.cc b/printing/image.cc index 5c5213f..a7ae67d 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) { |