Index: ui/gfx/image/image_util.cc |
diff --git a/ui/gfx/image/image_util.cc b/ui/gfx/image/image_util.cc |
index 16387149d142c76d4d91126c314a526b8c3c8249..624620c90bc9fc5a256d3bb1b66b79360adfeb7b 100644 |
--- a/ui/gfx/image/image_util.cc |
+++ b/ui/gfx/image/image_util.cc |
@@ -65,12 +65,7 @@ bool JPEG1xEncodedDataFromSkiaRepresentation(const Image& image, |
if (!bitmap.readyToDraw()) |
return false; |
- return gfx::JPEGCodec::Encode( |
- reinterpret_cast<unsigned char*>(bitmap.getAddr32(0, 0)), |
- gfx::JPEGCodec::FORMAT_SkBitmap, bitmap.width(), |
- bitmap.height(), |
- static_cast<int>(bitmap.rowBytes()), quality, |
- dst); |
+ return gfx::JPEGCodec::Encode(bitmap, quality, dst); |
} |
#endif // !defined(OS_IOS) |