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

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

Issue 2901753002: Make VDA::Config's converting constructor explicit (Closed)
Patch Set: braces for multiline if Created 3 years, 7 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 | media/gpu/video_decode_accelerator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3aea65f00caebf154c86a8251d8038752ba5ac67..d3fb411d87c27bc8df08ff751b2da002fef98e37 100644
--- a/content/renderer/pepper/pepper_video_decoder_host.cc
+++ b/content/renderer/pepper/pepper_video_decoder_host.cc
@@ -502,8 +502,10 @@ bool PepperVideoDecoderHost::TryFallbackToSoftwareDecoder() {
min_picture_count_);
std::unique_ptr<VideoDecoderShim> new_decoder(
new VideoDecoderShim(this, shim_texture_pool_size));
- if (!new_decoder->Initialize(profile_, this))
+ if (!new_decoder->Initialize(media::VideoDecodeAccelerator::Config(profile_),
+ this)) {
return false;
+ }
software_fallback_used_ = true;
decoder_.reset(new_decoder.release());
« no previous file with comments | « no previous file | media/gpu/video_decode_accelerator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698