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

Unified Diff: content/renderer/media/video_capture_message_filter.cc

Issue 2395913003: Cleanup of passing GpuMemoryBuffer backed video frames (Closed)
Patch Set: Rebase Created 4 years, 2 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/renderer/media/video_capture_message_filter.cc
diff --git a/content/renderer/media/video_capture_message_filter.cc b/content/renderer/media/video_capture_message_filter.cc
index c2fb78374fce06f65ce8fef592703e37bd6b592e..ba2fb29ae8ec7792c708819dfb8d653d8fbd3a2d 100644
--- a/content/renderer/media/video_capture_message_filter.cc
+++ b/content/renderer/media/video_capture_message_filter.cc
@@ -59,7 +59,6 @@ bool VideoCaptureMessageFilter::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(VideoCaptureMsg_BufferReady, OnBufferReceived)
IPC_MESSAGE_HANDLER(VideoCaptureMsg_StateChanged, OnDeviceStateChanged)
IPC_MESSAGE_HANDLER(VideoCaptureMsg_NewBuffer, OnBufferCreated)
- IPC_MESSAGE_HANDLER(VideoCaptureMsg_NewBuffer2, OnBufferCreated2)
IPC_MESSAGE_HANDLER(VideoCaptureMsg_FreeBuffer, OnBufferDestroyed)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -115,24 +114,6 @@ void VideoCaptureMessageFilter::OnBufferCreated(int device_id,
delegate->OnBufferCreated(handle, length, buffer_id);
}
-void VideoCaptureMessageFilter::OnBufferCreated2(
- int device_id,
- const std::vector<gfx::GpuMemoryBufferHandle>& handles,
- const gfx::Size& size,
- int buffer_id) {
- Delegate* const delegate = find_delegate(device_id);
- if (!delegate) {
- DLOG(WARNING) << "OnBufferCreated: Got video GMB buffer for a "
- "non-existent or removed video capture.";
- Send(new VideoCaptureHostMsg_BufferReady(
- device_id, buffer_id, gpu::SyncToken() /* release_sync_token */,
- -1.0 /* consumer_resource_utilization */));
- return;
- }
-
- delegate->OnBufferCreated2(handles, size, buffer_id);
-}
-
void VideoCaptureMessageFilter::OnBufferReceived(
const VideoCaptureMsg_BufferReady_Params& params) {
Delegate* const delegate = find_delegate(params.device_id);
« no previous file with comments | « content/renderer/media/video_capture_message_filter.h ('k') | content/renderer/media/video_capture_message_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698