Commit e3b20ea2 authored by aurimas@chromium.org's avatar aurimas@chromium.org

Switch from FORMAT_BGRA to FORMAT_SkBitmap.

JPEG encoding switch from FORMAT_BGRA to FORMAT_SkBitmap. BGRA does not work
correctly on Android.


Review URL: https://chromiumcodereview.appspot.com/11086058

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161363 0039d316-1c4b-4281-b951-d872f2087c98
parent a34087bd
......@@ -43,7 +43,7 @@ bool JPEGEncodedDataFromImage(const Image& image, int quality,
return gfx::JPEGCodec::Encode(
reinterpret_cast<unsigned char*>(bitmap.getAddr32(0, 0)),
gfx::JPEGCodec::FORMAT_BGRA, bitmap.width(),
gfx::JPEGCodec::FORMAT_SkBitmap, bitmap.width(),
bitmap.height(),
static_cast<int>(bitmap.rowBytes()), quality,
dst);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment