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

Side by Side Diff: content/renderer/media/video_capture_impl.h

Issue 2721113002: getUserMedia: handle the device starting status report. (Closed)
Patch Set: Created 3 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 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // Video format requested by the client to this class via StartCapture(). 144 // Video format requested by the client to this class via StartCapture().
145 media::VideoCaptureParams params_; 145 media::VideoCaptureParams params_;
146 146
147 // First captured frame reference time sent from browser process side. 147 // First captured frame reference time sent from browser process side.
148 base::TimeTicks first_frame_ref_time_; 148 base::TimeTicks first_frame_ref_time_;
149 149
150 VideoCaptureState state_; 150 VideoCaptureState state_;
151 151
152 base::ThreadChecker io_thread_checker_; 152 base::ThreadChecker io_thread_checker_;
153 153
154 // Flag set to True when captured frames are dropped due to arriving earlier
155 // than OnStarted event. Then a frame refresh request will be sent out later
156 // when OnStarted arrives, for a new frame to start the video call with.
157 // This only has effect on screen capture.
158 bool maybe_refresh_frame_;
chfremer 2017/03/02 17:56:10 The "maybe_" prefix seems redundant, since it is c
braveyao 2017/03/03 17:53:12 Done.
159
154 // WeakPtrFactory pointing back to |this| object, for use with 160 // WeakPtrFactory pointing back to |this| object, for use with
155 // media::VideoFrames constructed in OnBufferReceived() from buffers cached 161 // media::VideoFrames constructed in OnBufferReceived() from buffers cached
156 // in |client_buffers_|. 162 // in |client_buffers_|.
157 base::WeakPtrFactory<VideoCaptureImpl> weak_factory_; 163 base::WeakPtrFactory<VideoCaptureImpl> weak_factory_;
158 164
159 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); 165 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl);
160 }; 166 };
161 167
162 } // namespace content 168 } // namespace content
163 169
164 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ 170 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698