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

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

Issue 2407623002: VideoCapture: migrate last Renderer-->Host msg and start Host-->Renderer migration (Closed)
Patch Set: chfremer@ comments 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 ba2fb29ae8ec7792c708819dfb8d653d8fbd3a2d..8922b3bfe5b9ac7eaca58296f6ebe927743fbead 100644
--- a/content/renderer/media/video_capture_message_filter.cc
+++ b/content/renderer/media/video_capture_message_filter.cc
@@ -57,7 +57,6 @@ bool VideoCaptureMessageFilter::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(VideoCaptureMessageFilter, message)
IPC_MESSAGE_HANDLER(VideoCaptureMsg_BufferReady, OnBufferReceived)
- IPC_MESSAGE_HANDLER(VideoCaptureMsg_StateChanged, OnDeviceStateChanged)
IPC_MESSAGE_HANDLER(VideoCaptureMsg_NewBuffer, OnBufferCreated)
IPC_MESSAGE_HANDLER(VideoCaptureMsg_FreeBuffer, OnBufferDestroyed)
IPC_MESSAGE_UNHANDLED(handled = false)
@@ -105,9 +104,6 @@ void VideoCaptureMessageFilter::OnBufferCreated(int device_id,
// to be returned.
base::SharedMemory::CloseHandle(handle);
- Send(new VideoCaptureHostMsg_BufferReady(
- device_id, buffer_id, gpu::SyncToken() /* release_sync_token */,
- -1.0 /* consumer_resource_utilization */));
return;
}
@@ -121,10 +117,6 @@ void VideoCaptureMessageFilter::OnBufferReceived(
DLOG(WARNING) << "OnBufferReceived: Got video SHM buffer for a "
"non-existent or removed video capture.";
- // Send the buffer back to Host in case it's waiting for all buffers
- // to be returned.
- Send(new VideoCaptureHostMsg_BufferReady(params.device_id, params.buffer_id,
- gpu::SyncToken(), -1.0));
return;
}
@@ -149,16 +141,4 @@ void VideoCaptureMessageFilter::OnBufferDestroyed(int device_id,
delegate->OnBufferDestroyed(buffer_id);
}
-void VideoCaptureMessageFilter::OnDeviceStateChanged(
- int device_id,
- VideoCaptureState state) {
- Delegate* const delegate = find_delegate(device_id);
- if (!delegate) {
- DLOG(WARNING) << "OnDeviceStateChanged: Got video capture event for a "
- "non-existent or removed video capture.";
- return;
- }
- delegate->OnStateChanged(state);
-}
-
} // namespace content
« 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