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

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

Issue 2632563003: [cc] Calculate the correct latest_confirmed_sequence_number in cc::Scheduler. (Closed)
Patch Set: add todo for impl-side invalidations. Created 3 years, 10 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 | « 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 <deque> 8 #include <deque>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 bool CanBeginMainFrameAndActivateBeforeDeadline( 199 bool CanBeginMainFrameAndActivateBeforeDeadline(
200 const BeginFrameArgs& args, 200 const BeginFrameArgs& args,
201 base::TimeDelta bmf_to_activate_estimate, 201 base::TimeDelta bmf_to_activate_estimate,
202 base::TimeTicks now) const; 202 base::TimeTicks now) const;
203 void AdvanceCommitStateIfPossible(); 203 void AdvanceCommitStateIfPossible();
204 bool IsBeginMainFrameSentOrStarted() const; 204 bool IsBeginMainFrameSentOrStarted() const;
205 void BeginImplFrameWithDeadline(const BeginFrameArgs& args); 205 void BeginImplFrameWithDeadline(const BeginFrameArgs& args);
206 void BeginImplFrameSynchronous(const BeginFrameArgs& args); 206 void BeginImplFrameSynchronous(const BeginFrameArgs& args);
207 void BeginImplFrame(const BeginFrameArgs& args); 207 void BeginImplFrame(const BeginFrameArgs& args);
208 void FinishImplFrame(); 208 void FinishImplFrame();
209 enum BeginFrameResult { kBeginFrameSkipped, kBeginFrameFinished };
210 void SendBeginFrameAck(const BeginFrameArgs& args, BeginFrameResult result);
209 void OnBeginImplFrameDeadline(); 211 void OnBeginImplFrameDeadline();
210 void PollToAdvanceCommitState(); 212 void PollToAdvanceCommitState();
211 213
212 bool IsInsideAction(SchedulerStateMachine::Action action) { 214 bool IsInsideAction(SchedulerStateMachine::Action action) {
213 return inside_action_ == action; 215 return inside_action_ == action;
214 } 216 }
215 217
216 base::WeakPtrFactory<Scheduler> weak_factory_; 218 base::WeakPtrFactory<Scheduler> weak_factory_;
217 219
218 DISALLOW_COPY_AND_ASSIGN(Scheduler); 220 DISALLOW_COPY_AND_ASSIGN(Scheduler);
219 }; 221 };
220 222
221 } // namespace cc 223 } // namespace cc
222 224
223 #endif // CC_SCHEDULER_SCHEDULER_H_ 225 #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