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

Unified Diff: cc/scheduler/scheduler.cc

Issue 1435133004: cc: Clean up max frames/swaps pending usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK changes Created 5 years, 1 month 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: cc/scheduler/scheduler.cc
diff --git a/cc/scheduler/scheduler.cc b/cc/scheduler/scheduler.cc
index 072086fe0dd262ea9bc03e66ccc4d2cb91c08d5b..a17c656bbe87d3f724cdcd38d6e2ca150027c3e6 100644
--- a/cc/scheduler/scheduler.cc
+++ b/cc/scheduler/scheduler.cc
@@ -194,6 +194,9 @@ void Scheduler::SetNeedsPrepareTiles() {
}
void Scheduler::SetMaxSwapsPending(int max) {
+ // TODO(brianderson): Remove all callers of this function.
+ DCHECK_EQ(1, max) << "Surface and CompositorTimingHistory do not support "
+ "multiple pending swaps.";
state_machine_.SetMaxSwapsPending(max);
}

Powered by Google App Engine
This is Rietveld 408576698