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

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

Issue 2632563003: [cc] Calculate the correct latest_confirmed_sequence_number in cc::Scheduler. (Closed)
Patch Set: Fix handling of source_id changes and add some Scheduler tests. Created 3 years, 11 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
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 <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 bool CanBeginMainFrameAndActivateBeforeDeadline( 189 bool CanBeginMainFrameAndActivateBeforeDeadline(
190 const BeginFrameArgs& args, 190 const BeginFrameArgs& args,
191 base::TimeDelta bmf_to_activate_estimate, 191 base::TimeDelta bmf_to_activate_estimate,
192 base::TimeTicks now) const; 192 base::TimeTicks now) const;
193 void AdvanceCommitStateIfPossible(); 193 void AdvanceCommitStateIfPossible();
194 bool IsBeginMainFrameSentOrStarted() const; 194 bool IsBeginMainFrameSentOrStarted() const;
195 void BeginImplFrameWithDeadline(const BeginFrameArgs& args); 195 void BeginImplFrameWithDeadline(const BeginFrameArgs& args);
196 void BeginImplFrameSynchronous(const BeginFrameArgs& args); 196 void BeginImplFrameSynchronous(const BeginFrameArgs& args);
197 void BeginImplFrame(const BeginFrameArgs& args); 197 void BeginImplFrame(const BeginFrameArgs& args);
198 void FinishImplFrame(); 198 void FinishImplFrame();
199 enum BeginFrameResult { kBeginFrameSkipped, kBeginFrameFinished };
200 void SendBeginFrameAck(const BeginFrameArgs& args, BeginFrameResult result);
199 void OnBeginImplFrameDeadline(); 201 void OnBeginImplFrameDeadline();
200 void PollToAdvanceCommitState(); 202 void PollToAdvanceCommitState();
201 203
202 bool IsInsideAction(SchedulerStateMachine::Action action) { 204 bool IsInsideAction(SchedulerStateMachine::Action action) {
203 return inside_action_ == action; 205 return inside_action_ == action;
204 } 206 }
205 207
206 base::WeakPtrFactory<Scheduler> weak_factory_; 208 base::WeakPtrFactory<Scheduler> weak_factory_;
207 209
208 DISALLOW_COPY_AND_ASSIGN(Scheduler); 210 DISALLOW_COPY_AND_ASSIGN(Scheduler);
209 }; 211 };
210 212
211 } // namespace cc 213 } // namespace cc
212 214
213 #endif // CC_SCHEDULER_SCHEDULER_H_ 215 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698