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

Unified Diff: cc/scheduler/scheduler_state_machine.cc

Issue 255033004: Revert of cc: SwapAck throttle Swap without throttling MainFrames (Closed) Base URL: http://git.chromium.org/chromium/src.git@cleanupOutputSurface
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | cc/scheduler/scheduler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler_state_machine.cc
diff --git a/cc/scheduler/scheduler_state_machine.cc b/cc/scheduler/scheduler_state_machine.cc
index 7cf4bb60a3646c706ad57d67acc0c255f27b17e0..02448897daf82ec3fa5ddde25622eeaeb2217d6d 100644
--- a/cc/scheduler/scheduler_state_machine.cc
+++ b/cc/scheduler/scheduler_state_machine.cc
@@ -480,6 +480,11 @@
if (!HasInitializedOutputSurface())
return false;
+ // SwapAck throttle the BeginMainFrames
+ // TODO(brianderson): Remove this restriction to improve throughput.
+ if (pending_swaps_ >= max_pending_swaps_)
+ return false;
+
if (skip_begin_main_frame_to_reduce_latency_)
return false;
« no previous file with comments | « no previous file | cc/scheduler/scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698