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

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

Issue 2045273005: Have VDA clients inform decoder of supported picture buffer formats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: content/renderer/pepper/pepper_video_decoder_host.cc
diff --git a/content/renderer/pepper/pepper_video_decoder_host.cc b/content/renderer/pepper/pepper_video_decoder_host.cc
index cf5d49cdb890e613f7cb42c25ac68c8e5345ec39..3ca1c3b1b9fe0f7fba6e914a27e8d7e19fdc3ae2 100644
--- a/content/renderer/pepper/pepper_video_decoder_host.cc
+++ b/content/renderer/pepper/pepper_video_decoder_host.cc
@@ -149,7 +149,10 @@ int32_t PepperVideoDecoderHost::OnHostMsgInitialize(
// it is okay to immediately send IPC messages.
if (command_buffer->channel()) {
decoder_.reset(new media::GpuVideoDecodeAcceleratorHost(command_buffer));
- if (decoder_->Initialize(profile_, this)) {
+ media::VideoDecodeAccelerator::Config vda_config(profile_);
+ vda_config.supported_output_formats.assign(
+ {media::PIXEL_FORMAT_XRGB, media::PIXEL_FORMAT_ARGB});
+ if (decoder_->Initialize(vda_config, this)) {
initialized_ = true;
return PP_OK;
}

Powered by Google App Engine
This is Rietveld 408576698