Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1070)

Unified Diff: media/gpu/jpeg_decode_accelerator_unittest.cc

Issue 2920263002: Delete FORMAT_RGB and legacy libjpeg support from gfx::JpegCodec (Closed)
Patch Set: Fix PFQ chrome build Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gfx/codec/jpeg_codec.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | ui/gfx/codec/jpeg_codec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698