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

Unified Diff: cc/scheduler/scheduler.cc

Issue 23907006: cc: Allow sending BeginMainFrame before draw or activation (Closed) Base URL: http://git.chromium.org/chromium/src.git@schedDeadline3
Patch Set: Block main thread from state machine; remove completion event; Created 7 years, 3 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: cc/scheduler/scheduler.cc
diff --git a/cc/scheduler/scheduler.cc b/cc/scheduler/scheduler.cc
index c19dcda5d6cf18d8c40c9aae16bacbf080db0ffa..31272e7d815e4d1c689c55e12788714cb4c7ecc5 100644
--- a/cc/scheduler/scheduler.cc
+++ b/cc/scheduler/scheduler.cc
@@ -303,6 +303,10 @@ void Scheduler::ProcessScheduledActions() {
client_->DidAnticipatedDrawTimeChange(AnticipatedDrawTime());
}
+bool Scheduler::ActiveTreeNeedsFirstDraw() const {
+ return state_machine_.active_tree_needs_first_draw();
+}
+
bool Scheduler::WillDrawIfNeeded() const {
return !state_machine_.PendingDrawsShouldBeAborted();
}

Powered by Google App Engine
This is Rietveld 408576698