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 // VideoCaptureController is the glue between a VideoCaptureDevice and all | 5 // VideoCaptureController is the glue between a VideoCaptureDevice and all |
6 // VideoCaptureHosts that have connected to it. A controller exists on behalf of | 6 // VideoCaptureHosts that have connected to it. A controller exists on behalf of |
7 // one (and only one) VideoCaptureDevice; both are owned by the | 7 // one (and only one) VideoCaptureDevice; both are owned by the |
8 // VideoCaptureManager. | 8 // VideoCaptureManager. |
9 // | 9 // |
10 // The VideoCaptureController is responsible for: | 10 // The VideoCaptureController is responsible for: |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
99 void StopSession(int session_id); | 99 void StopSession(int session_id); |
100 | 100 |
101 // Return a buffer with id |buffer_id| previously given in | 101 // Return a buffer with id |buffer_id| previously given in |
102 // VideoCaptureControllerEventHandler::OnBufferReady. In the case that the | 102 // VideoCaptureControllerEventHandler::OnBufferReady. In the case that the |
103 // buffer was backed by a texture, |sync_point| will be waited on before | 103 // buffer was backed by a texture, |sync_point| will be waited on before |
104 // destroying or recycling the texture, to synchronize with texture users in | 104 // destroying or recycling the texture, to synchronize with texture users in |
105 // the renderer process. | 105 // the renderer process. |
106 void ReturnBuffer(const VideoCaptureControllerID& id, | 106 void ReturnBuffer(const VideoCaptureControllerID& id, |
107 VideoCaptureControllerEventHandler* event_handler, | 107 VideoCaptureControllerEventHandler* event_handler, |
108 int buffer_id, | 108 int buffer_id, |
109 uint32 sync_point); | 109 const std::vector<uint32>&); |
danakj
2014/03/06 19:31:31
needs a variable name
| |
110 | 110 |
111 const media::VideoCaptureFormat& GetVideoCaptureFormat() const; | 111 const media::VideoCaptureFormat& GetVideoCaptureFormat() const; |
112 | 112 |
113 private: | 113 private: |
114 class VideoCaptureDeviceClient; | 114 class VideoCaptureDeviceClient; |
115 | 115 |
116 struct ControllerClient; | 116 struct ControllerClient; |
117 typedef std::list<ControllerClient*> ControllerClients; | 117 typedef std::list<ControllerClient*> ControllerClients; |
118 | 118 |
119 // Worker functions on IO thread. Called by the VideoCaptureDeviceClient. | 119 // Worker functions on IO thread. Called by the VideoCaptureDeviceClient. |
(...skipping 30 matching lines...) Expand all Loading... | |
150 media::VideoCaptureFormat video_capture_format_; | 150 media::VideoCaptureFormat video_capture_format_; |
151 | 151 |
152 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; | 152 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; |
153 | 153 |
154 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); | 154 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); |
155 }; | 155 }; |
156 | 156 |
157 } // namespace content | 157 } // namespace content |
158 | 158 |
159 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ | 159 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ |
OLD | NEW |