Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: content/browser/renderer_host/media/video_capture_controller.h

Issue 175223003: HW Video: Make media::VideoFrame handle the sync point of the compositor as well as webgl (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: previous patchset has unrelated code by mistake. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698