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

Unified Diff: remoting/protocol/webrtc_frame_scheduler_simple.h

Issue 2431843002: Update WebrtcFrameScheduler to avoid concurrent captures. (Closed)
Patch Set: Created 4 years, 2 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: remoting/protocol/webrtc_frame_scheduler_simple.h
diff --git a/remoting/protocol/webrtc_frame_scheduler_simple.h b/remoting/protocol/webrtc_frame_scheduler_simple.h
index 6a38b39dd1bab9f6f5778c5778ccd3b70b04d566..306ff2b2b43a42f40b52722a7f830e67a1fa2903 100644
--- a/remoting/protocol/webrtc_frame_scheduler_simple.h
+++ b/remoting/protocol/webrtc_frame_scheduler_simple.h
@@ -53,6 +53,9 @@ class WebrtcFrameSchedulerSimple : public VideoChannelStateObserver,
LeakyBucket pacing_bucket_;
+ // Set to true when a frame is being captured or encoded.
+ bool frame_pending_ = false;
+
// Set to true when encoding unchanged frames for top-off.
bool top_off_is_active_ = false;

Powered by Google App Engine
This is Rietveld 408576698