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

Unified Diff: cc/scheduler/scheduler.h

Issue 222743004: cc: Avoid dynamic calls to base::Bind in scheduler (Closed) Base URL: http://git.chromium.org/chromium/src.git@pollForCommit3
Patch Set: rebase on bo's patch 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 | « no previous file | cc/scheduler/scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler.h
diff --git a/cc/scheduler/scheduler.h b/cc/scheduler/scheduler.h
index b6814e9c2fb700a41b630c0434749b63b66f3a70..984b735a52f1782402c8f721e04965c7aa3de943 100644
--- a/cc/scheduler/scheduler.h
+++ b/cc/scheduler/scheduler.h
@@ -99,7 +99,7 @@ class CC_EXPORT Scheduler {
return state_machine_.MainThreadIsInHighLatencyMode();
}
bool BeginImplFrameDeadlinePending() const {
- return !begin_impl_frame_deadline_closure_.IsCancelled();
+ return !begin_impl_frame_deadline_task_.IsCancelled();
}
bool WillDrawIfNeeded() const;
@@ -153,9 +153,13 @@ class CC_EXPORT Scheduler {
bool last_set_needs_begin_impl_frame_;
BeginFrameArgs last_begin_impl_frame_args_;
- base::CancelableClosure begin_impl_frame_deadline_closure_;
- base::CancelableClosure poll_for_draw_triggers_closure_;
- base::CancelableClosure advance_commit_state_closure_;
+
+ base::Closure begin_impl_frame_deadline_closure_;
+ base::Closure poll_for_draw_triggers_closure_;
+ base::Closure advance_commit_state_closure_;
+ base::CancelableClosure begin_impl_frame_deadline_task_;
+ base::CancelableClosure poll_for_draw_triggers_task_;
+ base::CancelableClosure advance_commit_state_task_;
SchedulerStateMachine state_machine_;
bool inside_process_scheduled_actions_;
« no previous file with comments | « no previous file | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698