| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 const media::VideoCaptureParams& params, | 111 const media::VideoCaptureParams& params, |
| 112 mojom::VideoCaptureObserverPtr observer) override; | 112 mojom::VideoCaptureObserverPtr observer) override; |
| 113 void Stop(int32_t device_id) override; | 113 void Stop(int32_t device_id) override; |
| 114 void Pause(int32_t device_id) override; | 114 void Pause(int32_t device_id) override; |
| 115 void Resume(int32_t device_id, | 115 void Resume(int32_t device_id, |
| 116 int32_t session_id, | 116 int32_t session_id, |
| 117 const media::VideoCaptureParams& params) override; | 117 const media::VideoCaptureParams& params) override; |
| 118 void RequestRefreshFrame(int32_t device_id) override; | 118 void RequestRefreshFrame(int32_t device_id) override; |
| 119 void ReleaseBuffer(int32_t device_id, | 119 void ReleaseBuffer(int32_t device_id, |
| 120 int32_t buffer_id, | 120 int32_t buffer_id, |
| 121 const gpu::SyncToken& sync_token, | |
| 122 double consumer_resource_utilization) override; | 121 double consumer_resource_utilization) override; |
| 123 void GetDeviceSupportedFormats( | 122 void GetDeviceSupportedFormats( |
| 124 int32_t device_id, | 123 int32_t device_id, |
| 125 int32_t session_id, | 124 int32_t session_id, |
| 126 const GetDeviceSupportedFormatsCallback& callback) override; | 125 const GetDeviceSupportedFormatsCallback& callback) override; |
| 127 void GetDeviceFormatsInUse( | 126 void GetDeviceFormatsInUse( |
| 128 int32_t device_id, | 127 int32_t device_id, |
| 129 int32_t session_id, | 128 int32_t session_id, |
| 130 const GetDeviceFormatsInUseCallback& callback) override; | 129 const GetDeviceFormatsInUseCallback& callback) override; |
| 131 | 130 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 149 // VideoCaptureObservers map, each one is used and should be valid between | 148 // VideoCaptureObservers map, each one is used and should be valid between |
| 150 // Start() and the corresponding Stop(). | 149 // Start() and the corresponding Stop(). |
| 151 std::map<int32_t, mojom::VideoCaptureObserverPtr> device_id_to_observer_map_; | 150 std::map<int32_t, mojom::VideoCaptureObserverPtr> device_id_to_observer_map_; |
| 152 | 151 |
| 153 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); | 152 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); |
| 154 }; | 153 }; |
| 155 | 154 |
| 156 } // namespace content | 155 } // namespace content |
| 157 | 156 |
| 158 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ | 157 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ |
| OLD | NEW |