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

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

Issue 101843005: Convert video capture pipline to base::TimeTicks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 9890509b Rebase, Windows compile fixes Created 6 years, 11 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 | Annotate | Revision Log
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 class VideoCaptureDeviceClient; 110 class VideoCaptureDeviceClient;
111 111
112 struct ControllerClient; 112 struct ControllerClient;
113 typedef std::list<ControllerClient*> ControllerClients; 113 typedef std::list<ControllerClient*> ControllerClients;
114 114
115 // Worker functions on IO thread. Called by the VideoCaptureDeviceClient. 115 // Worker functions on IO thread. Called by the VideoCaptureDeviceClient.
116 void DoIncomingCapturedI420BufferOnIOThread( 116 void DoIncomingCapturedI420BufferOnIOThread(
117 scoped_refptr<media::VideoCaptureDevice::Client::Buffer> buffer, 117 scoped_refptr<media::VideoCaptureDevice::Client::Buffer> buffer,
118 const gfx::Size& dimensions, 118 const gfx::Size& dimensions,
119 int frame_rate, 119 int frame_rate,
120 base::Time timestamp); 120 base::TimeTicks timestamp);
121 void DoErrorOnIOThread(); 121 void DoErrorOnIOThread();
122 void DoDeviceStoppedOnIOThread(); 122 void DoDeviceStoppedOnIOThread();
123 void DoBufferDestroyedOnIOThread(int buffer_id_to_drop); 123 void DoBufferDestroyedOnIOThread(int buffer_id_to_drop);
124 124
125 // Find a client of |id| and |handler| in |clients|. 125 // Find a client of |id| and |handler| in |clients|.
126 ControllerClient* FindClient( 126 ControllerClient* FindClient(
127 const VideoCaptureControllerID& id, 127 const VideoCaptureControllerID& id,
128 VideoCaptureControllerEventHandler* handler, 128 VideoCaptureControllerEventHandler* handler,
129 const ControllerClients& clients); 129 const ControllerClients& clients);
130 130
(...skipping 15 matching lines...) Expand all
146 media::VideoCaptureFormat video_capture_format_; 146 media::VideoCaptureFormat video_capture_format_;
147 147
148 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; 148 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_;
149 149
150 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); 150 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController);
151 }; 151 };
152 152
153 } // namespace content 153 } // namespace content
154 154
155 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ 155 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698