Index: media/capture/video/fake_video_capture_device.cc |
diff --git a/media/capture/video/fake_video_capture_device.cc b/media/capture/video/fake_video_capture_device.cc |
index 2d0ec493b6a7e6604fbecd4488c22d27a4806495..9732b0db77d28e9d3a19d1a90832033ff79a110a 100644 |
--- a/media/capture/video/fake_video_capture_device.cc |
+++ b/media/capture/video/fake_video_capture_device.cc |
@@ -591,12 +591,8 @@ void JpegEncodingFrameDeliverer::PaintAndDeliverNextFrame( |
frame_painter()->PaintFrame(timestamp_to_paint, &sk_n32_buffer_[0]); |
static const int kQuality = 75; |
- const gfx::JPEGCodec::ColorFormat encoding_source_format = |
- (kN32_SkColorType == kRGBA_8888_SkColorType) |
- ? gfx::JPEGCodec::FORMAT_RGBA |
- : gfx::JPEGCodec::FORMAT_BGRA; |
bool success = gfx::JPEGCodec::Encode( |
- &sk_n32_buffer_[0], encoding_source_format, |
+ &sk_n32_buffer_[0], kN32_SkColorType, |
device_state()->format.frame_size.width(), |
device_state()->format.frame_size.height(), |
VideoFrame::RowBytes(0 /* plane */, PIXEL_FORMAT_ARGB, |