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 /tools/valgrind/memcheck | |
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 'tools/valgrind/memcheck')
-rw-r--r-- | tools/valgrind/memcheck/suppressions_mac.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/valgrind/memcheck/suppressions_mac.txt b/tools/valgrind/memcheck/suppressions_mac.txt index 99b1de8..55face0 100644 --- a/tools/valgrind/memcheck/suppressions_mac.txt +++ b/tools/valgrind/memcheck/suppressions_mac.txt @@ -320,6 +320,7 @@ fun:deflateSetDictionary fun:deflate fun:png_write_finish_row + ... fun:png_write_find_filter fun:_cg_png_write_row fun:writeOnePng @@ -327,8 +328,7 @@ fun:CGImageDestinationFinalize fun:+[NSBitmapImageRep(NSBitmapImageFileTypeExtensions) representationOfImageRepsInArray:usingType:properties:] fun:-[NSBitmapImageRep(NSBitmapImageFileTypeExtensions) representationUsingType:properties:] - fun:_ZN3gfx8internal14PNGFromNSImageEP7NSImagePSt6vectorIhSaIhEE - fun:_ZNK3gfx5Image10ToImagePNGEv + fun:_ZN3gfx8internal24Get1xPNGBytesFromNSImageEP7NSImage } # 2. Intentional unit test errors, stuff that is somehow a false positive |