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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « cc/scheduler/scheduler_state_machine.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/scheduler/scheduler_state_machine.h" 5 #include "cc/scheduler/scheduler_state_machine.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/debug/trace_event_argument.h" 8 #include "base/debug/trace_event_argument.h"
9 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 1079
1080 case OUTPUT_SURFACE_ACTIVE: 1080 case OUTPUT_SURFACE_ACTIVE:
1081 case OUTPUT_SURFACE_WAITING_FOR_FIRST_COMMIT: 1081 case OUTPUT_SURFACE_WAITING_FOR_FIRST_COMMIT:
1082 case OUTPUT_SURFACE_WAITING_FOR_FIRST_ACTIVATION: 1082 case OUTPUT_SURFACE_WAITING_FOR_FIRST_ACTIVATION:
1083 return true; 1083 return true;
1084 } 1084 }
1085 NOTREACHED(); 1085 NOTREACHED();
1086 return false; 1086 return false;
1087 } 1087 }
1088 1088
1089 std::string SchedulerStateMachine::GetStatesForDebugging() const {
1090 return base::StringPrintf("%c %d %d %d %c %c %c %d %d",
1091 needs_commit_ ? 'T' : 'F',
1092 static_cast<int>(output_surface_state_),
1093 static_cast<int>(begin_impl_frame_state_),
1094 static_cast<int>(commit_state_),
1095 has_pending_tree_ ? 'T' : 'F',
1096 pending_tree_is_ready_for_activation_ ? 'T' : 'F',
1097 active_tree_needs_first_draw_ ? 'T' : 'F',
1098 max_pending_swaps_,
1099 pending_swaps_);
1100 }
1101
1089 } // namespace cc 1102 } // namespace cc
OLDNEW
« 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