| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/memory/shared_memory.h" | 5 #include "base/memory/shared_memory.h" |
| 6 #include "content/common/content_export.h" | 6 #include "content/common/content_export.h" |
| 7 #include "content/common/media/video_capture.h" | 7 #include "content/common/media/video_capture.h" |
| 8 #include "content/public/common/common_param_traits.h" | 8 #include "content/public/common/common_param_traits.h" |
| 9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
| 10 #include "media/base/video_capture_types.h" | 10 #include "media/base/video_capture_types.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // allocated by VideoCaptureMsg_NewBuffer. | 59 // allocated by VideoCaptureMsg_NewBuffer. |
| 60 IPC_MESSAGE_CONTROL2(VideoCaptureMsg_FreeBuffer, | 60 IPC_MESSAGE_CONTROL2(VideoCaptureMsg_FreeBuffer, |
| 61 int /* device id */, | 61 int /* device id */, |
| 62 int /* buffer_id */) | 62 int /* buffer_id */) |
| 63 | 63 |
| 64 // Tell the renderer process that a Buffer is available from video capture, and | 64 // Tell the renderer process that a Buffer is available from video capture, and |
| 65 // send the associated VideoFrame constituent parts as IPC parameters. | 65 // send the associated VideoFrame constituent parts as IPC parameters. |
| 66 IPC_MESSAGE_CONTROL1(VideoCaptureMsg_BufferReady, | 66 IPC_MESSAGE_CONTROL1(VideoCaptureMsg_BufferReady, |
| 67 VideoCaptureMsg_BufferReady_Params) | 67 VideoCaptureMsg_BufferReady_Params) |
| 68 | 68 |
| 69 // Notify the renderer about a device's supported formats; this is a response | |
| 70 // to a VideoCaptureHostMsg_GetDeviceSupportedFormats request. | |
| 71 IPC_MESSAGE_CONTROL2(VideoCaptureMsg_DeviceSupportedFormatsEnumerated, | |
| 72 int /* device_id */, | |
| 73 media::VideoCaptureFormats /* supported_formats */) | |
| 74 | |
| 75 // Notify the renderer about a device's format(s) in use; this is a response | |
| 76 // to a VideoCaptureHostMsg_GetDeviceFormatInUse request. | |
| 77 IPC_MESSAGE_CONTROL2(VideoCaptureMsg_DeviceFormatsInUseReceived, | |
| 78 int /* device_id */, | |
| 79 media::VideoCaptureFormats /* formats_in_use */) | |
| 80 | |
| 81 // Tell the browser process that the renderer has finished reading from | 69 // Tell the browser process that the renderer has finished reading from |
| 82 // a buffer previously delivered by VideoCaptureMsg_BufferReady. | 70 // a buffer previously delivered by VideoCaptureMsg_BufferReady. |
| 83 IPC_MESSAGE_CONTROL4(VideoCaptureHostMsg_BufferReady, | 71 IPC_MESSAGE_CONTROL4(VideoCaptureHostMsg_BufferReady, |
| 84 int /* device_id */, | 72 int /* device_id */, |
| 85 int /* buffer_id */, | 73 int /* buffer_id */, |
| 86 gpu::SyncToken /* sync_token */, | 74 gpu::SyncToken /* sync_token */, |
| 87 double /* consumer_resource_utilization */) | 75 double /* consumer_resource_utilization */) |
| 88 | |
| 89 // Get the formats supported by a device referenced by |capture_session_id|. | |
| 90 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceSupportedFormats, | |
| 91 int /* device_id */, | |
| 92 media::VideoCaptureSessionId /* session_id */) | |
| 93 | |
| 94 // Get the format(s) in use by a device referenced by |capture_session_id|. | |
| 95 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_GetDeviceFormatsInUse, | |
| 96 int /* device_id */, | |
| 97 media::VideoCaptureSessionId /* session_id */) | |
| OLD | NEW |