Index: content/browser/renderer_host/media/video_capture_host.cc |
diff --git a/content/browser/renderer_host/media/video_capture_host.cc b/content/browser/renderer_host/media/video_capture_host.cc |
index 9d84d92840950f9b934834fd273b027e7afbe998..397a8be1cda1c19c6ccc4e22954dabdc09ee25ef 100644 |
--- a/content/browser/renderer_host/media/video_capture_host.cc |
+++ b/content/browser/renderer_host/media/video_capture_host.cc |
@@ -66,6 +66,18 @@ void VideoCaptureHost::OnBufferCreated(VideoCaptureControllerID controller_id, |
Send(new VideoCaptureMsg_NewBuffer(controller_id, handle, length, buffer_id)); |
} |
+void VideoCaptureHost::OnBufferCreated2( |
+ VideoCaptureControllerID controller_id, |
+ const std::vector<gfx::GpuMemoryBufferHandle>& handles, |
+ const gfx::Size& size, |
+ int buffer_id) { |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
+ if (entries_.find(controller_id) == entries_.end()) |
+ return; |
+ |
+ Send(new VideoCaptureMsg_NewBuffer2(controller_id, handles, size, buffer_id)); |
+} |
+ |
void VideoCaptureHost::OnBufferDestroyed(VideoCaptureControllerID controller_id, |
int buffer_id) { |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |