summaryrefslogtreecommitdiffstats
path: root/printing/page_range.cc
diff options
context:
space:
mode:
authorpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-05 18:02:22 +0000
committerpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-05 18:02:22 +0000
commit2bbdfdd2054f67fa9b8565e41dd1fc17a82d982b (patch)
treede64aa0aec34a0588584eb16d12f6111b2587184 /printing/page_range.cc
parent1bae3ad673292afa7915611c3432b313b221c373 (diff)
downloadchromium_src-2bbdfdd2054f67fa9b8565e41dd1fc17a82d982b.zip
chromium_src-2bbdfdd2054f67fa9b8565e41dd1fc17a82d982b.tar.gz
chromium_src-2bbdfdd2054f67fa9b8565e41dd1fc17a82d982b.tar.bz2
Adds support for creating a gfx::Image from multi resolution raw data.
Changes ToImagePNG() to As1xPNGBytes(). - As1xPNGBytes() does not crash with an IsEmpty() image - returns 1x png bytes and Null if the gfx::Image does not have a 1x representation The main reason for this CL is to avoid reencoding the gfx::Image to PNG bytes in BookmarkChangeProcessor::EncodeFavicon() from the gfx::Image created in FaviconService::GetFaviconImageCallback() (Apart for Android the raw bytes passed to FaviconService::GetFaviconImageCallback() can be used unmodified) BUG=160632 Test=ImageTest.*, ImageMacTest.* Review URL: https://chromiumcodereview.appspot.com/11280060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171250 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/page_range.cc')
0 files changed, 0 insertions, 0 deletions