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

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

Issue 1085003002: pepper: VideoEncoder: use same constraints as media::VideoFrame for software encoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not wait on invalid callback Created 5 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
« no previous file with comments | « no previous file | ppapi/tests/test_video_encoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/video_encoder_shim.cc
diff --git a/content/renderer/pepper/video_encoder_shim.cc b/content/renderer/pepper/video_encoder_shim.cc
index 8866fae0f623b05017506ced298afe0fe013736e..c3735deb964f498e1f401cb7c8817a26558a600a 100644
--- a/content/renderer/pepper/video_encoder_shim.cc
+++ b/content/renderer/pepper/video_encoder_shim.cc
@@ -101,9 +101,12 @@ void VideoEncoderShim::EncoderImpl::Initialize(
encoder_->UpdateRates(initial_bitrate);
+ gfx::Size coded_size =
+ media::VideoFrame::PlaneSize(input_format, 0, input_visible_size);
+
media_task_runner_->PostTask(
FROM_HERE, base::Bind(&VideoEncoderShim::OnRequireBitstreamBuffers, shim_,
- kInputFrameCount, input_visible_size,
+ kInputFrameCount, coded_size,
kBitstreamBufferSize));
}
« no previous file with comments | « no previous file | ppapi/tests/test_video_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698