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

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

Issue 2351723004: Don't attempt to use NV12 with hardware decoding in Flash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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/ppb_video_decoder_impl.cc
diff --git a/content/renderer/pepper/ppb_video_decoder_impl.cc b/content/renderer/pepper/ppb_video_decoder_impl.cc
index 09b88fbf2e519d8b6e51d3bbe103daae71a4e501..311ae6febfa2a484901c1576dafa008e23aba11c 100644
--- a/content/renderer/pepper/ppb_video_decoder_impl.cc
+++ b/content/renderer/pepper/ppb_video_decoder_impl.cc
@@ -131,7 +131,10 @@ bool PPB_VideoDecoder_Impl::Init(PP_Resource graphics_context,
// it is okay to immediately send IPC messages.
if (command_buffer->channel()) {
decoder_.reset(new media::GpuVideoDecodeAcceleratorHost(command_buffer));
- return decoder_->Initialize(PPToMediaProfile(profile), this);
+ media::VideoDecodeAccelerator::Config config(PPToMediaProfile(profile));
+ config.supported_output_formats.assign(
+ {media::PIXEL_FORMAT_XRGB, media::PIXEL_FORMAT_ARGB});
+ return decoder_->Initialize(config, this);
}
return false;
}
« 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