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

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

Issue 21421002: Revert EVS revisions 209760, 298753, 213143. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased at 216225, prepare to land Created 7 years, 4 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 04c79ab1afe8775d3a56f51b15bfb63deec2ab4d..0ef77fa1888a641140720f3ff9c531c48dc7cec6 100644
--- a/content/renderer/media/video_capture_message_filter.cc
+++ b/content/renderer/media/video_capture_message_filter.cc
@@ -4,7 +4,6 @@
#include "content/renderer/media/video_capture_message_filter.h"
-#include "content/common/media/encoded_video_capture_messages.h"
#include "content/common/media/video_capture_messages.h"
#include "content/common/view_messages.h"
@@ -62,18 +61,7 @@ bool VideoCaptureMessageFilter::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(VideoCaptureMsg_StateChanged, OnDeviceStateChanged)
IPC_MESSAGE_HANDLER(VideoCaptureMsg_NewBuffer, OnBufferCreated)
IPC_MESSAGE_HANDLER(VideoCaptureMsg_DeviceInfo, OnDeviceInfoReceived)
- IPC_MESSAGE_HANDLER(VideoCaptureMsg_DeviceInfoChanged, OnDeviceInfoChanged)
- IPC_MESSAGE_HANDLER(EncodedVideoCaptureMsg_CapabilitiesAvailable,
- OnCapabilitiesAvailable)
- IPC_MESSAGE_HANDLER(EncodedVideoCaptureMsg_BitstreamOpened,
- OnBitstreamOpened)
- IPC_MESSAGE_HANDLER(EncodedVideoCaptureMsg_BitstreamClosed,
- OnBitstreamClosed)
- IPC_MESSAGE_HANDLER(EncodedVideoCaptureMsg_BitstreamConfigChanged,
- OnBitstreamConfigChanged)
- IPC_MESSAGE_HANDLER(EncodedVideoCaptureMsg_BitstreamReady,
- OnBitstreamReady);
- IPC_MESSAGE_UNHANDLED(handled = false)
+ IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
}
@@ -170,76 +158,4 @@ void VideoCaptureMessageFilter::OnDeviceInfoReceived(
delegate->OnDeviceInfoReceived(params);
}
-void VideoCaptureMessageFilter::OnDeviceInfoChanged(
- int device_id,
- const media::VideoCaptureParams& params) {
- Delegate* delegate = find_delegate(device_id);
- if (!delegate) {
- DLOG(WARNING) << "OnDeviceInfoChanged: Got video capture event for a "
- "non-existent or removed video capture.";
- return;
- }
- delegate->OnDeviceInfoChanged(params);
-}
-
-void VideoCaptureMessageFilter::OnCapabilitiesAvailable(
- int device_id,
- media::VideoEncodingCapabilities capabilities) {
- Delegate* delegate = find_delegate(device_id);
- if (!delegate) {
- DLOG(WARNING) << "OnCapabilitiesAvailable: Got video capture event for a "
- "non-existent or removed video capture.";
- return;
- }
- delegate->OnEncodingCapabilitiesAvailable(capabilities);
-}
-
-void VideoCaptureMessageFilter::OnBitstreamOpened(
- int device_id,
- media::VideoEncodingParameters params,
- std::vector<base::SharedMemoryHandle> buffers,
- uint32 buffer_size) {
- Delegate* delegate = find_delegate(device_id);
- if (!delegate) {
- DLOG(WARNING) << "OnBitstreamOpened: Got video capture event for a "
- "non-existent or removed video capture.";
- return;
- }
- delegate->OnEncodedBitstreamOpened(params, buffers, buffer_size);
-}
-
-void VideoCaptureMessageFilter::OnBitstreamClosed(int device_id) {
- Delegate* delegate = find_delegate(device_id);
- if (!delegate) {
- DLOG(WARNING) << "OnBitstreamClosed: Got video capture event for a "
- "non-existent or removed video capture.";
- return;
- }
- delegate->OnEncodedBitstreamClosed();
-}
-
-void VideoCaptureMessageFilter::OnBitstreamConfigChanged(
- int device_id,
- media::RuntimeVideoEncodingParameters params) {
- Delegate* delegate = find_delegate(device_id);
- if (!delegate) {
- DLOG(WARNING) << "OnBitstreamConfigChanged: Got video capture event for a "
- "non-existent or removed video capture.";
- return;
- }
- delegate->OnEncodingConfigChanged(params);
-}
-
-void VideoCaptureMessageFilter::OnBitstreamReady(
- int device_id, int buffer_id, uint32 size,
- media::BufferEncodingMetadata metadata) {
- Delegate* delegate = find_delegate(device_id);
- if (!delegate) {
- DLOG(WARNING) << "OnBitstreamReady: Got video capture event for a "
- "non-existent or removed video capture.";
- return;
- }
- delegate->OnEncodedBufferReady(buffer_id, size, metadata);
-}
-
} // 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