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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // IPC message: Stop capture on device referenced by |device_id|. | 120 // IPC message: Stop capture on device referenced by |device_id|. |
121 void OnStopCapture(int device_id); | 121 void OnStopCapture(int device_id); |
122 | 122 |
123 // IPC message: Pause capture on device referenced by |device_id|. | 123 // IPC message: Pause capture on device referenced by |device_id|. |
124 void OnPauseCapture(int device_id); | 124 void OnPauseCapture(int device_id); |
125 | 125 |
126 void OnResumeCapture(int device_id, | 126 void OnResumeCapture(int device_id, |
127 media::VideoCaptureSessionId session_id, | 127 media::VideoCaptureSessionId session_id, |
128 const media::VideoCaptureParams& params); | 128 const media::VideoCaptureParams& params); |
129 | 129 |
| 130 // IPC message: Requests that the video capture send a frame "soon" (e.g., to |
| 131 // resolve picture loss or quality issues). |
| 132 void OnRequestRefreshFrame(int device_id); |
| 133 |
130 // IPC message: Called when a renderer is finished using a buffer. Notifies | 134 // IPC message: Called when a renderer is finished using a buffer. Notifies |
131 // the controller. | 135 // the controller. |
132 void OnRendererFinishedWithBuffer(int device_id, | 136 void OnRendererFinishedWithBuffer(int device_id, |
133 int buffer_id, | 137 int buffer_id, |
134 const gpu::SyncToken& sync_token, | 138 const gpu::SyncToken& sync_token, |
135 double consumer_resource_utilization); | 139 double consumer_resource_utilization); |
136 | 140 |
137 // IPC message: Get supported formats referenced by |capture_session_id|. | 141 // IPC message: Get supported formats referenced by |capture_session_id|. |
138 // |device_id| is needed for message back-routing purposes. | 142 // |device_id| is needed for message back-routing purposes. |
139 void OnGetDeviceSupportedFormats( | 143 void OnGetDeviceSupportedFormats( |
(...skipping 20 matching lines...) Expand all Loading... |
160 // is connected. An entry in this map holds a null controller while it is in | 164 // is connected. An entry in this map holds a null controller while it is in |
161 // the process of starting. | 165 // the process of starting. |
162 EntryMap entries_; | 166 EntryMap entries_; |
163 | 167 |
164 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); | 168 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); |
165 }; | 169 }; |
166 | 170 |
167 } // namespace content | 171 } // namespace content |
168 | 172 |
169 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ | 173 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ |
OLD | NEW |