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

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

Issue 270703004: Making BeginFrameArgs work with TRACE_EVENT system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Using AsValue rather than StateAsValue. Created 6 years, 7 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
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 <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void BeginFrame(const BeginFrameArgs& args); 130 void BeginFrame(const BeginFrameArgs& args);
131 void PostBeginRetroFrame(); 131 void PostBeginRetroFrame();
132 void BeginRetroFrame(); 132 void BeginRetroFrame();
133 void BeginUnthrottledFrame(); 133 void BeginUnthrottledFrame();
134 134
135 void BeginImplFrame(const BeginFrameArgs& args); 135 void BeginImplFrame(const BeginFrameArgs& args);
136 void OnBeginImplFrameDeadline(); 136 void OnBeginImplFrameDeadline();
137 void PollForAnticipatedDrawTriggers(); 137 void PollForAnticipatedDrawTriggers();
138 void PollToAdvanceCommitState(); 138 void PollToAdvanceCommitState();
139 139
140 scoped_ptr<base::Value> StateAsValue() const; 140 scoped_ptr<base::Value> AsValue() const;
141 141
142 bool IsInsideAction(SchedulerStateMachine::Action action) { 142 bool IsInsideAction(SchedulerStateMachine::Action action) {
143 return inside_action_ == action; 143 return inside_action_ == action;
144 } 144 }
145 145
146 bool IsBeginMainFrameSent() const; 146 bool IsBeginMainFrameSent() const;
147 void SetContinuousPainting(bool continuous_painting) { 147 void SetContinuousPainting(bool continuous_painting) {
148 state_machine_.SetContinuousPainting(continuous_painting); 148 state_machine_.SetContinuousPainting(continuous_painting);
149 } 149 }
150 150
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 SchedulerStateMachine::Action inside_action_; 207 SchedulerStateMachine::Action inside_action_;
208 208
209 base::WeakPtrFactory<Scheduler> weak_factory_; 209 base::WeakPtrFactory<Scheduler> weak_factory_;
210 210
211 DISALLOW_COPY_AND_ASSIGN(Scheduler); 211 DISALLOW_COPY_AND_ASSIGN(Scheduler);
212 }; 212 };
213 213
214 } // namespace cc 214 } // namespace cc
215 215
216 #endif // CC_SCHEDULER_SCHEDULER_H_ 216 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698