| 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 // VideoCaptureHost serves video capture related messages from | 5 // VideoCaptureHost serves video capture related messages from |
| 6 // VideoCaptureMessageFilter which lives inside the render process. | 6 // VideoCaptureMessageFilter which lives inside the render process. |
| 7 // | 7 // |
| 8 // This class is owned by RenderProcessHostImpl, and instantiated on UI | 8 // This class is owned by RenderProcessHostImpl, and instantiated on UI |
| 9 // thread, but all other operations and method calls happen on IO thread. | 9 // thread, but all other operations and method calls happen on IO thread. |
| 10 // | 10 // |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 void OnPauseCapture(int device_id); | 123 void OnPauseCapture(int device_id); |
| 124 | 124 |
| 125 void OnResumeCapture(int device_id, | 125 void OnResumeCapture(int device_id, |
| 126 media::VideoCaptureSessionId session_id, | 126 media::VideoCaptureSessionId session_id, |
| 127 const media::VideoCaptureParams& params); | 127 const media::VideoCaptureParams& params); |
| 128 | 128 |
| 129 // IPC message: Called when a renderer is finished using a buffer. Notifies | 129 // IPC message: Called when a renderer is finished using a buffer. Notifies |
| 130 // the controller. | 130 // the controller. |
| 131 void OnRendererFinishedWithBuffer(int device_id, | 131 void OnRendererFinishedWithBuffer(int device_id, |
| 132 int buffer_id, | 132 int buffer_id, |
| 133 uint32 sync_point, | 133 const gpu::SyncToken& sync_token, |
| 134 double consumer_resource_utilization); | 134 double consumer_resource_utilization); |
| 135 | 135 |
| 136 // IPC message: Get supported formats referenced by |capture_session_id|. | 136 // IPC message: Get supported formats referenced by |capture_session_id|. |
| 137 // |device_id| is needed for message back-routing purposes. | 137 // |device_id| is needed for message back-routing purposes. |
| 138 void OnGetDeviceSupportedFormats( | 138 void OnGetDeviceSupportedFormats( |
| 139 int device_id, | 139 int device_id, |
| 140 media::VideoCaptureSessionId capture_session_id); | 140 media::VideoCaptureSessionId capture_session_id); |
| 141 | 141 |
| 142 // IPC message: Get a device's currently in use format(s), referenced by | 142 // IPC message: Get a device's currently in use format(s), referenced by |
| 143 // |capture_session_id|. |device_id| is needed for message back-routing | 143 // |capture_session_id|. |device_id| is needed for message back-routing |
| (...skipping 15 matching lines...) Expand all Loading... |
| 159 // is connected. An entry in this map holds a null controller while it is in | 159 // is connected. An entry in this map holds a null controller while it is in |
| 160 // the process of starting. | 160 // the process of starting. |
| 161 EntryMap entries_; | 161 EntryMap entries_; |
| 162 | 162 |
| 163 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); | 163 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 } // namespace content | 166 } // namespace content |
| 167 | 167 |
| 168 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ | 168 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ |
| OLD | NEW |