diff options
author | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-05 18:02:22 +0000 |
---|---|---|
committer | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-05 18:02:22 +0000 |
commit | 2bbdfdd2054f67fa9b8565e41dd1fc17a82d982b (patch) | |
tree | de64aa0aec34a0588584eb16d12f6111b2587184 /ui/ui.gyp | |
parent | 1bae3ad673292afa7915611c3432b313b221c373 (diff) | |
download | chromium_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 'ui/ui.gyp')
-rw-r--r-- | ui/ui.gyp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -398,6 +398,8 @@ 'gfx/image/image.h', 'gfx/image/image_ios.mm', 'gfx/image/image_mac.mm', + 'gfx/image/image_png_rep.cc', + 'gfx/image/image_png_rep.h', 'gfx/image/image_skia.cc', 'gfx/image/image_skia.h', 'gfx/image/image_skia_operations.cc', |