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

Unified Diff: cc/scheduler/scheduler.cc

Issue 222413004: cc: Add more values to Scheduler::StateAsValue (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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 | « no previous file | no next file » | 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 ce80784c638429f94b9b80aeab283adec3293689..80015d742a96b5118ec3843bc98de51d4c2bc125 100644
--- a/cc/scheduler/scheduler.cc
+++ b/cc/scheduler/scheduler.cc
@@ -414,9 +414,21 @@ bool Scheduler::WillDrawIfNeeded() const {
scoped_ptr<base::Value> Scheduler::StateAsValue() const {
scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue);
state->Set("state_machine", state_machine_.AsValue().release());
- state->SetDouble(
+
+ scoped_ptr<base::DictionaryValue> scheduler_state(new base::DictionaryValue);
+ scheduler_state->SetDouble(
"time_until_anticipated_draw_time_ms",
(AnticipatedDrawTime() - base::TimeTicks::Now()).InMillisecondsF());
+ scheduler_state->SetBoolean("last_set_needs_begin_impl_frame_",
+ last_set_needs_begin_impl_frame_);
+ scheduler_state->SetBoolean(
+ "begin_impl_frame_deadline_closure_",
+ !begin_impl_frame_deadline_closure_.IsCancelled());
+ scheduler_state->SetBoolean("poll_for_draw_triggers_closure_",
+ !poll_for_draw_triggers_closure_.IsCancelled());
+ scheduler_state->SetBoolean("advance_commit_state_timer_",
+ advance_commit_state_timer_.IsRunning());
+ state->Set("scheduler_state", scheduler_state.release());
scoped_ptr<base::DictionaryValue> client_state(new base::DictionaryValue);
client_state->SetDouble("draw_duration_estimate_ms",
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698