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

Unified Diff: cc/scheduler/scheduler.cc

Issue 189553007: cc: modify the waiting condition of forced commit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « cc/scheduler/scheduler.h ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler.cc
diff --git a/cc/scheduler/scheduler.cc b/cc/scheduler/scheduler.cc
index 6555e82e91e2965b3b5c2ede90933d4bc5180123..bf4a6fa1d2088a685072c8c4a59512cc6163ae59 100644
--- a/cc/scheduler/scheduler.cc
+++ b/cc/scheduler/scheduler.cc
@@ -294,6 +294,11 @@ void Scheduler::PollForAnticipatedDrawTriggers() {
state_machine_.DidLeavePollForAnticipatedDrawTriggers();
}
+bool Scheduler::IsBeginMainFrameSent() const {
+ return state_machine_.commit_state() ==
+ SchedulerStateMachine::COMMIT_STATE_BEGIN_MAIN_FRAME_SENT;
+}
+
void Scheduler::DrawAndSwapIfPossible() {
DrawSwapReadbackResult result =
client_->ScheduledActionDrawAndSwapIfPossible();
« no previous file with comments | « cc/scheduler/scheduler.h ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698