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

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

Issue 2527283003: cc: Introduce BeginFrame sequence numbers and acknowledgements.
Patch Set: Address Brian's comments. Created 4 years 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/begin_frame_source_unittest.cc ('k') | 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void SetDeferCommits(bool defer_commits); 135 void SetDeferCommits(bool defer_commits);
136 136
137 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; 137 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> AsValue() const;
138 138
139 void SetVideoNeedsBeginFrames(bool video_needs_begin_frames); 139 void SetVideoNeedsBeginFrames(bool video_needs_begin_frames);
140 140
141 const BeginFrameSource* begin_frame_source() const { 141 const BeginFrameSource* begin_frame_source() const {
142 return begin_frame_source_; 142 return begin_frame_source_;
143 } 143 }
144 144
145 uint64_t CurrentBeginFrameSourceId();
146 uint64_t CurrentBeginFrameNumber();
147 uint64_t LatestConfirmedFrameForActiveTree();
148
145 protected: 149 protected:
146 // Virtual for testing. 150 // Virtual for testing.
147 virtual base::TimeTicks Now() const; 151 virtual base::TimeTicks Now() const;
148 152
149 const SchedulerSettings settings_; 153 const SchedulerSettings settings_;
150 // Not owned. 154 // Not owned.
151 SchedulerClient* client_; 155 SchedulerClient* client_;
152 int layer_tree_host_id_; 156 int layer_tree_host_id_;
153 base::SingleThreadTaskRunner* task_runner_; 157 base::SingleThreadTaskRunner* task_runner_;
154 158
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 } 208 }
205 209
206 base::WeakPtrFactory<Scheduler> weak_factory_; 210 base::WeakPtrFactory<Scheduler> weak_factory_;
207 211
208 DISALLOW_COPY_AND_ASSIGN(Scheduler); 212 DISALLOW_COPY_AND_ASSIGN(Scheduler);
209 }; 213 };
210 214
211 } // namespace cc 215 } // namespace cc
212 216
213 #endif // CC_SCHEDULER_SCHEDULER_H_ 217 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « cc/scheduler/begin_frame_source_unittest.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698