| Index: services/data_decoder/image_decoder_impl_unittest.cc
|
| diff --git a/services/data_decoder/image_decoder_impl_unittest.cc b/services/data_decoder/image_decoder_impl_unittest.cc
|
| index 0f304256d7e466410a11fbb1303441bd1d33ed78..ea8a5e16b314d632081c292ef9dc34deb1fd2a5a 100644
|
| --- a/services/data_decoder/image_decoder_impl_unittest.cc
|
| +++ b/services/data_decoder/image_decoder_impl_unittest.cc
|
| @@ -35,11 +35,8 @@ bool CreateJPEGImage(int width,
|
| bitmap.allocN32Pixels(width, height);
|
| bitmap.eraseColor(color);
|
|
|
| - const int kQuality = 50;
|
| - if (!gfx::JPEGCodec::Encode(
|
| - static_cast<const unsigned char*>(bitmap.getPixels()),
|
| - gfx::JPEGCodec::FORMAT_SkBitmap, width, height,
|
| - static_cast<int>(bitmap.rowBytes()), kQuality, output)) {
|
| + constexpr int kQuality = 50;
|
| + if (!gfx::JPEGCodec::Encode(bitmap, kQuality, output)) {
|
| LOG(ERROR) << "Unable to encode " << width << "x" << height << " bitmap";
|
| return false;
|
| }
|
|
|