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

Unified Diff: content/renderer/pepper/video_decoder_shim.cc

Issue 346543002: Pepper: Fix texture color format in VideoDecoderShim. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Break out example into separate CL. Created 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/video_decoder_shim.cc
diff --git a/content/renderer/pepper/video_decoder_shim.cc b/content/renderer/pepper/video_decoder_shim.cc
index 32f80bf159526620f84d5ffbb88d5bf6f0a43577..afd7f57c31b9fe0701fb033e57c67c056eb26ec3 100644
--- a/content/renderer/pepper/video_decoder_shim.cc
+++ b/content/renderer/pepper/video_decoder_shim.cc
@@ -256,8 +256,8 @@ void VideoDecoderShim::DecoderImpl::OnOutputComplete(
scoped_ptr<PendingFrame> pending_frame;
if (!frame->end_of_stream()) {
pending_frame.reset(new PendingFrame(decode_id_, frame->coded_size()));
- // Convert the VideoFrame pixels to ARGB.
- libyuv::I420ToARGB(frame->data(media::VideoFrame::kYPlane),
+ // Convert the VideoFrame pixels to ABGR to match VideoDecodeAccelerator.
+ libyuv::I420ToABGR(frame->data(media::VideoFrame::kYPlane),
frame->stride(media::VideoFrame::kYPlane),
frame->data(media::VideoFrame::kUPlane),
frame->stride(media::VideoFrame::kUPlane),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698