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

Side by Side Diff: cc/scheduler/scheduler.h

Issue 176973007: cc: Also trace the scheduler client state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/scheduler/scheduler.cc » ('j') | 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 #ifndef CC_SCHEDULER_SCHEDULER_H_ 5 #ifndef CC_SCHEDULER_SCHEDULER_H_
6 #define CC_SCHEDULER_SCHEDULER_H_ 6 #define CC_SCHEDULER_SCHEDULER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 bool RedrawPending() const { return state_machine_.RedrawPending(); } 95 bool RedrawPending() const { return state_machine_.RedrawPending(); }
96 bool ManageTilesPending() const { 96 bool ManageTilesPending() const {
97 return state_machine_.ManageTilesPending(); 97 return state_machine_.ManageTilesPending();
98 } 98 }
99 bool MainThreadIsInHighLatencyMode() const { 99 bool MainThreadIsInHighLatencyMode() const {
100 return state_machine_.MainThreadIsInHighLatencyMode(); 100 return state_machine_.MainThreadIsInHighLatencyMode();
101 } 101 }
102 102
103 bool WillDrawIfNeeded() const; 103 bool WillDrawIfNeeded() const;
104 104
105 base::TimeTicks AnticipatedDrawTime(); 105 base::TimeTicks AnticipatedDrawTime() const;
106 106
107 base::TimeTicks LastBeginImplFrameTime(); 107 base::TimeTicks LastBeginImplFrameTime();
108 108
109 void BeginImplFrame(const BeginFrameArgs& args); 109 void BeginImplFrame(const BeginFrameArgs& args);
110 void OnBeginImplFrameDeadline(); 110 void OnBeginImplFrameDeadline();
111 void PollForAnticipatedDrawTriggers(); 111 void PollForAnticipatedDrawTriggers();
112 112
113 scoped_ptr<base::Value> StateAsValue() { 113 scoped_ptr<base::Value> StateAsValue() const;
114 return state_machine_.AsValue().Pass();
115 }
116 114
117 bool IsInsideAction(SchedulerStateMachine::Action action) { 115 bool IsInsideAction(SchedulerStateMachine::Action action) {
118 return inside_action_ == action; 116 return inside_action_ == action;
119 } 117 }
120 118
121 private: 119 private:
122 Scheduler(SchedulerClient* client, 120 Scheduler(SchedulerClient* client,
123 const SchedulerSettings& scheduler_settings, 121 const SchedulerSettings& scheduler_settings,
124 int layer_tree_host_id); 122 int layer_tree_host_id);
125 123
(...skipping 23 matching lines...) Expand all
149 SchedulerStateMachine::Action inside_action_; 147 SchedulerStateMachine::Action inside_action_;
150 148
151 base::WeakPtrFactory<Scheduler> weak_factory_; 149 base::WeakPtrFactory<Scheduler> weak_factory_;
152 150
153 DISALLOW_COPY_AND_ASSIGN(Scheduler); 151 DISALLOW_COPY_AND_ASSIGN(Scheduler);
154 }; 152 };
155 153
156 } // namespace cc 154 } // namespace cc
157 155
158 #endif // CC_SCHEDULER_SCHEDULER_H_ 156 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« 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