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

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

Issue 2712983003: [cc] Set BeginFrame sequence numbers on CompositorFrames from Scheduler. (Closed)
Patch Set: fix comment + test. Created 3 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
« no previous file with comments | « cc/output/compositor_frame_metadata.h ('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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 void SetDeferCommits(bool defer_commits); 145 void SetDeferCommits(bool defer_commits);
146 146
147 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; 147 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> AsValue() const;
148 148
149 void SetVideoNeedsBeginFrames(bool video_needs_begin_frames); 149 void SetVideoNeedsBeginFrames(bool video_needs_begin_frames);
150 150
151 const BeginFrameSource* begin_frame_source() const { 151 const BeginFrameSource* begin_frame_source() const {
152 return begin_frame_source_; 152 return begin_frame_source_;
153 } 153 }
154 154
155 BeginFrameAck CurrentBeginFrameAckForActiveTree() const;
156
155 protected: 157 protected:
156 // Virtual for testing. 158 // Virtual for testing.
157 virtual base::TimeTicks Now() const; 159 virtual base::TimeTicks Now() const;
158 160
159 const SchedulerSettings settings_; 161 const SchedulerSettings settings_;
160 // Not owned. 162 // Not owned.
161 SchedulerClient* client_; 163 SchedulerClient* client_;
162 int layer_tree_host_id_; 164 int layer_tree_host_id_;
163 base::SingleThreadTaskRunner* task_runner_; 165 base::SingleThreadTaskRunner* task_runner_;
164 166
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } 218 }
217 219
218 base::WeakPtrFactory<Scheduler> weak_factory_; 220 base::WeakPtrFactory<Scheduler> weak_factory_;
219 221
220 DISALLOW_COPY_AND_ASSIGN(Scheduler); 222 DISALLOW_COPY_AND_ASSIGN(Scheduler);
221 }; 223 };
222 224
223 } // namespace cc 225 } // namespace cc
224 226
225 #endif // CC_SCHEDULER_SCHEDULER_H_ 227 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW
« no previous file with comments | « cc/output/compositor_frame_metadata.h ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698