| Index: media/gpu/jpeg_decode_accelerator_unittest.cc
|
| diff --git a/media/gpu/jpeg_decode_accelerator_unittest.cc b/media/gpu/jpeg_decode_accelerator_unittest.cc
|
| index 4f134950e4799b4d7aae523b0b2bd8cdddc54261..f3784adb61669efbe4e4ca57a171c64863890d17 100644
|
| --- a/media/gpu/jpeg_decode_accelerator_unittest.cc
|
| +++ b/media/gpu/jpeg_decode_accelerator_unittest.cc
|
| @@ -392,13 +392,13 @@ bool JpegDecodeAcceleratorTestEnvironment::CreateTestJpegImage(
|
| int width,
|
| int height,
|
| base::FilePath* filename) {
|
| - const int kBytesPerPixel = 3;
|
| + const int kBytesPerPixel = 4;
|
| const int kJpegQuality = 100;
|
| std::vector<unsigned char> input_buffer(width * height * kBytesPerPixel);
|
| std::vector<unsigned char> encoded;
|
| - if (!gfx::JPEGCodec::Encode(&input_buffer[0], gfx::JPEGCodec::FORMAT_RGB,
|
| - width, height, width * kBytesPerPixel,
|
| - kJpegQuality, &encoded)) {
|
| + if (!gfx::JPEGCodec::Encode(&input_buffer[0], kRGBA_8888_SkColorType, width,
|
| + height, width * kBytesPerPixel, kJpegQuality,
|
| + &encoded)) {
|
| return false;
|
| }
|
|
|
|
|