| 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..85cd671099e65d4a29826a5276da776894956bb6 100644
|
| --- a/media/gpu/jpeg_decode_accelerator_unittest.cc
|
| +++ b/media/gpu/jpeg_decode_accelerator_unittest.cc
|
| @@ -392,11 +392,11 @@ 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,
|
| + if (!gfx::JPEGCodec::Encode(&input_buffer[0], gfx::JPEGCodec::FORMAT_RGBA,
|
| width, height, width * kBytesPerPixel,
|
| kJpegQuality, &encoded)) {
|
| return false;
|
|
|