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

Unified Diff: cc/scheduler/scheduler.cc

Issue 1026233002: cc: Making BeginFrameSources support multiple BeginFrameObservers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: cc/scheduler/scheduler.cc
diff --git a/cc/scheduler/scheduler.cc b/cc/scheduler/scheduler.cc
index 68214cd96b762f5ba0c96581f6ba0c0fb00c1a38..1801c802866ee47d2a2b64f09142ea8c50827ed0 100644
--- a/cc/scheduler/scheduler.cc
+++ b/cc/scheduler/scheduler.cc
@@ -734,15 +734,15 @@ void Scheduler::ProcessScheduledActions() {
SetupNextBeginFrameIfNeeded();
}
-scoped_refptr<base::trace_event::ConvertableToTraceFormat> Scheduler::AsValue()
- const {
+scoped_refptr<base::trace_event::ConvertableToTraceFormat>
+Scheduler::AsValue() {
scoped_refptr<base::trace_event::TracedValue> state =
new base::trace_event::TracedValue();
AsValueInto(state.get());
return state;
}
-void Scheduler::AsValueInto(base::trace_event::TracedValue* state) const {
+void Scheduler::AsValueInto(base::trace_event::TracedValue* state) {
state->BeginDictionary("state_machine");
state_machine_.AsValueInto(state);
state->EndDictionary();
@@ -809,7 +809,7 @@ void Scheduler::AsValueInto(base::trace_event::TracedValue* state) const {
state->EndDictionary();
}
-bool Scheduler::CanCommitAndActivateBeforeDeadline() const {
+bool Scheduler::CanCommitAndActivateBeforeDeadline() {
// Check if the main thread computation and commit can be finished before the
// impl thread's deadline.
base::TimeTicks estimated_draw_time =

Powered by Google App Engine
This is Rietveld 408576698