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

Unified Diff: content/browser/renderer_host/media/web_contents_video_capture_device.cc

Issue 15906019: Hook up EncodedVideoSource on the browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screencast_cl_6
Patch Set: 516738a8 IPC/struct changes, courtesy hshi@ Created 7 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/browser/renderer_host/media/web_contents_video_capture_device.cc
diff --git a/content/browser/renderer_host/media/web_contents_video_capture_device.cc b/content/browser/renderer_host/media/web_contents_video_capture_device.cc
index f3e6e2452b3e831dab4e47115c3361f4f4fab3f3..3774723668ae9e17c556d4c9e6963685d383f28e 100644
--- a/content/browser/renderer_host/media/web_contents_video_capture_device.cc
+++ b/content/browser/renderer_host/media/web_contents_video_capture_device.cc
@@ -426,7 +426,7 @@ bool ThreadSafeCaptureOracle::ObserveEventAndDecideCapture(
return false; // Capture is stopped.
scoped_refptr<media::VideoFrame> output_buffer =
- consumer_->ReserveOutputBuffer();
+ consumer_->ReserveOutputVideoFrame();
const bool should_capture =
oracle_->ObserveEventAndDecideCapture(event, event_time);
const bool content_is_dirty =
@@ -1247,6 +1247,15 @@ media::VideoCaptureDevice* WebContentsVideoCaptureDevice::Create(
name, render_process_id, render_view_id);
}
+media::VideoEncodingCapabilities
+WebContentsVideoCaptureDevice::GetEncodingCapabilities() {
+ return media::VideoEncodingCapabilities();
+}
+
+void WebContentsVideoCaptureDevice::TryConfigureEncodedBitstream(
+ const media::RuntimeVideoEncodingParameters& params) {
+}
+
void WebContentsVideoCaptureDevice::Allocate(
int width, int height, int frame_rate,
VideoCaptureDevice::EventHandler* consumer) {

Powered by Google App Engine
This is Rietveld 408576698