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

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

Issue 2409893003: VideoCapture: more migration IPC-->mojo, part 5 (Closed)
Patch Set: rebase content/common/BUILD.gn 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 8922b3bfe5b9ac7eaca58296f6ebe927743fbead..6cde708c2636347b77f755f71d719b640225c0e3 100644
--- a/content/renderer/media/video_capture_message_filter.cc
+++ b/content/renderer/media/video_capture_message_filter.cc
@@ -56,9 +56,7 @@ bool VideoCaptureMessageFilter::Send(IPC::Message* message) {
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_NewBuffer, OnBufferCreated)
- IPC_MESSAGE_HANDLER(VideoCaptureMsg_FreeBuffer, OnBufferDestroyed)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -110,35 +108,4 @@ void VideoCaptureMessageFilter::OnBufferCreated(int device_id,
delegate->OnBufferCreated(handle, length, buffer_id);
}
-void VideoCaptureMessageFilter::OnBufferReceived(
- const VideoCaptureMsg_BufferReady_Params& params) {
- Delegate* const delegate = find_delegate(params.device_id);
- if (!delegate) {
- DLOG(WARNING) << "OnBufferReceived: Got video SHM buffer for a "
- "non-existent or removed video capture.";
-
- return;
- }
-
- delegate->OnBufferReceived(params.buffer_id,
- params.timestamp,
- params.metadata,
- params.pixel_format,
- params.storage_type,
- params.coded_size,
- params.visible_rect);
-}
-
-void VideoCaptureMessageFilter::OnBufferDestroyed(int device_id,
- int buffer_id) {
- Delegate* const delegate = find_delegate(device_id);
- if (!delegate) {
- DLOG(WARNING) << "OnBufferDestroyed: Instructed to free buffer for a "
- "non-existent or removed video capture.";
- return;
- }
-
- delegate->OnBufferDestroyed(buffer_id);
-}
-
} // 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