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

Unified Diff: cc/scheduler/scheduler_state_machine.cc

Issue 533973002: Add more logging to cc scheduler to debug RAF frame loss. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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_state_machine.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler_state_machine.cc
diff --git a/cc/scheduler/scheduler_state_machine.cc b/cc/scheduler/scheduler_state_machine.cc
index 2bec4de837494ae42052cd839f0001e880428d44..aa865732f7830c94bfc2d20c2e16a36f3aa1e7d9 100644
--- a/cc/scheduler/scheduler_state_machine.cc
+++ b/cc/scheduler/scheduler_state_machine.cc
@@ -1086,4 +1086,17 @@ bool SchedulerStateMachine::HasInitializedOutputSurface() const {
return false;
}
+std::string SchedulerStateMachine::GetStatesForDebugging() const {
+ return base::StringPrintf("%c %d %d %d %d %d %d %d %d",
brianderson 2014/09/02 22:24:28 Do some of these %d's need to be %c's? lgtm if th
+ needs_commit_ ? 'T' : 'F',
+ static_cast<int>(output_surface_state_),
+ static_cast<int>(begin_impl_frame_state_),
+ static_cast<int>(commit_state_),
+ has_pending_tree_ ? 'T' : 'F',
+ pending_tree_is_ready_for_activation_ ? 'T' : 'F',
+ active_tree_needs_first_draw_ ? 'T' : 'F',
+ max_pending_swaps_,
+ pending_swaps_);
+}
+
} // namespace cc
« no previous file with comments | « cc/scheduler/scheduler_state_machine.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698