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

Unified Diff: media/filters/gpu_video_decoder.cc

Issue 1869103002: Enable adaptive playback for spitzer, use conservative size. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl feedback. Created 4 years, 8 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: media/filters/gpu_video_decoder.cc
diff --git a/media/filters/gpu_video_decoder.cc b/media/filters/gpu_video_decoder.cc
index 34204cedacab04ae889c3a31bd350ca5a438f3a3..a460e28974f6d18ea8493a4321f9e56b1a40eedd 100644
--- a/media/filters/gpu_video_decoder.cc
+++ b/media/filters/gpu_video_decoder.cc
@@ -251,6 +251,7 @@ void GpuVideoDecoder::CompleteInitialization(int cdm_id, int surface_id) {
VideoDecodeAccelerator::Config vda_config(config_);
vda_config.surface_id = surface_id;
vda_config.is_deferred_initialization_allowed = true;
+ vda_config.initial_expected_coded_size = config_.coded_size();
if (!vda_->Initialize(vda_config, this)) {
DVLOG(1) << "VDA::Initialize failed.";
base::ResetAndReturn(&init_cb_).Run(false);

Powered by Google App Engine
This is Rietveld 408576698