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

Unified Diff: content/renderer/media/video_capture_impl.h

Issue 2721113002: getUserMedia: handle the device starting status report. (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/video_capture_impl.h
diff --git a/content/renderer/media/video_capture_impl.h b/content/renderer/media/video_capture_impl.h
index 55e8b536d559be4fcecca924c434f8b2c37181f1..d2d92139d2f62647ea42aaa04ddd19d54a97ebcf 100644
--- a/content/renderer/media/video_capture_impl.h
+++ b/content/renderer/media/video_capture_impl.h
@@ -151,6 +151,12 @@ class CONTENT_EXPORT VideoCaptureImpl : public mojom::VideoCaptureObserver {
base::ThreadChecker io_thread_checker_;
+ // Flag set to True when captured frames are dropped due to arriving earlier
+ // than OnStarted event. Then a frame refresh request will be sent out later
+ // when OnStarted arrives, for a new frame to start the video call with.
+ // This only has effect on screen capture.
+ 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.
+
// WeakPtrFactory pointing back to |this| object, for use with
// media::VideoFrames constructed in OnBufferReceived() from buffers cached
// in |client_buffers_|.

Powered by Google App Engine
This is Rietveld 408576698