summaryrefslogtreecommitdiffstats
path: root/cc/scheduler/scheduler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/scheduler/scheduler.cc')
-rw-r--r--cc/scheduler/scheduler.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/cc/scheduler/scheduler.cc b/cc/scheduler/scheduler.cc
index 7c57a4c..6a7d1d6 100644
--- a/cc/scheduler/scheduler.cc
+++ b/cc/scheduler/scheduler.cc
@@ -267,11 +267,10 @@ void Scheduler::OnBeginImplFrameDeadline() {
void Scheduler::PollForAnticipatedDrawTriggers() {
TRACE_EVENT0("cc", "Scheduler::PollForAnticipatedDrawTriggers");
+ poll_for_draw_triggers_closure_.Cancel();
state_machine_.DidEnterPollForAnticipatedDrawTriggers();
ProcessScheduledActions();
state_machine_.DidLeavePollForAnticipatedDrawTriggers();
-
- poll_for_draw_triggers_closure_.Cancel();
}
void Scheduler::DrawAndSwapIfPossible() {