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

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

Issue 2400443006: VideoCapture: moar VideoCapture renderer-->host messages to mojo, part 3 (Closed)
Patch Set: minor 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 20a40b5a73df2cc47417ab09fff2e3ce83b10aa7..c2fb78374fce06f65ce8fef592703e37bd6b592e 100644
--- a/content/renderer/media/video_capture_message_filter.cc
+++ b/content/renderer/media/video_capture_message_filter.cc
@@ -61,10 +61,6 @@ bool VideoCaptureMessageFilter::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(VideoCaptureMsg_NewBuffer, OnBufferCreated)
IPC_MESSAGE_HANDLER(VideoCaptureMsg_NewBuffer2, OnBufferCreated2)
IPC_MESSAGE_HANDLER(VideoCaptureMsg_FreeBuffer, OnBufferDestroyed)
- IPC_MESSAGE_HANDLER(VideoCaptureMsg_DeviceSupportedFormatsEnumerated,
- OnDeviceSupportedFormatsEnumerated)
- IPC_MESSAGE_HANDLER(VideoCaptureMsg_DeviceFormatsInUseReceived,
- OnDeviceFormatsInUseReceived)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -184,26 +180,4 @@ void VideoCaptureMessageFilter::OnDeviceStateChanged(
delegate->OnStateChanged(state);
}
-void VideoCaptureMessageFilter::OnDeviceSupportedFormatsEnumerated(
- int device_id,
- const media::VideoCaptureFormats& supported_formats) {
- Delegate* const delegate = find_delegate(device_id);
- if (!delegate) {
- DLOG(WARNING) << "OnDeviceFormatsEnumerated: unknown device";
- return;
- }
- delegate->OnDeviceSupportedFormatsEnumerated(supported_formats);
-}
-
-void VideoCaptureMessageFilter::OnDeviceFormatsInUseReceived(
- int device_id,
- const media::VideoCaptureFormats& formats_in_use) {
- Delegate* const delegate = find_delegate(device_id);
- if (!delegate) {
- DLOG(WARNING) << "OnDeviceFormatInUse: unknown device";
- return;
- }
- delegate->OnDeviceFormatsInUseReceived(formats_in_use);
-}
-
} // 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