diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-08 03:17:42 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-08 03:17:42 +0000 |
commit | 4d43ccd8f2bf704aec8d4f32a1d410fa347ea297 (patch) | |
tree | bacccd1d417e6659970954b0ee9a82ebc04c64cb /webkit/tools | |
parent | a2054d31633b7151b55bb5ec1982a3487c12d950 (diff) | |
download | chromium_src-4d43ccd8f2bf704aec8d4f32a1d410fa347ea297.zip chromium_src-4d43ccd8f2bf704aec8d4f32a1d410fa347ea297.tar.gz chromium_src-4d43ccd8f2bf704aec8d4f32a1d410fa347ea297.tar.bz2 |
Fix endianness issue in MockWebClipboardImpl PNG encoding.
Byte order on x86 Mac is BGRA as well, not RGBA.
BUG=none
TEST=Ran local layout tests which haven't been committed to WebKit yet.
Review URL: http://codereview.chromium.org/6816040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80890 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-rw-r--r-- | webkit/tools/test_shell/mock_webclipboard_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/mock_webclipboard_impl.cc b/webkit/tools/test_shell/mock_webclipboard_impl.cc index 72fd0c7..1d68c6f 100644 --- a/webkit/tools/test_shell/mock_webclipboard_impl.cc +++ b/webkit/tools/test_shell/mock_webclipboard_impl.cc @@ -91,10 +91,11 @@ WebKit::WebData MockWebClipboardImpl::readImage( CGImageRef image = m_image.getCGImageRef(); CFDataRef image_data_ref = CGDataProviderCopyData(CGImageGetDataProvider(image)); - webkit_support::EncodeRGBAPNG(CFDataGetBytePtr(image_data_ref), + webkit_support::EncodeBGRAPNG(CFDataGetBytePtr(image_data_ref), CGImageGetWidth(image), CGImageGetHeight(image), CGImageGetBytesPerRow(image), + false, &encoded_image); CFRelease(image_data_ref); #endif |