| Index: cc/debug/picture_debug_util.cc
|
| diff --git a/cc/debug/picture_debug_util.cc b/cc/debug/picture_debug_util.cc
|
| index f20715fc2960ffab9312f8998090caa18ee9eaf5..e88b86db95922c7bb40f97114c8b9d497984e9d2 100644
|
| --- a/cc/debug/picture_debug_util.cc
|
| +++ b/cc/debug/picture_debug_util.cc
|
| @@ -41,9 +41,9 @@ class BitmapSerializer : public SkPixelSerializer {
|
| DCHECK_LE(row_bytes,
|
| static_cast<size_t>(std::numeric_limits<int>::max()));
|
| encoding_succeeded = gfx::JPEGCodec::Encode(
|
| - reinterpret_cast<const unsigned char*>(pixels),
|
| - gfx::JPEGCodec::FORMAT_SkBitmap, info.width(), info.height(),
|
| - static_cast<int>(row_bytes), kJpegQuality, &data);
|
| + reinterpret_cast<const unsigned char*>(pixels), kN32_SkColorType,
|
| + info.width(), info.height(), static_cast<int>(row_bytes),
|
| + kJpegQuality, &data);
|
| } else {
|
| SkBitmap bm;
|
| // The cast is ok, since we only read the bm.
|
|
|