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

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

Issue 2712983003: [cc] Set BeginFrame sequence numbers on CompositorFrames from Scheduler. (Closed)
Patch Set: sync 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
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 uint32_t CurrentBeginFrameSourceId() const;
146 uint64_t CurrentBeginFrameSequenceNumber() const;
147 uint64_t LatestConfirmedBeginFrameSequenceNumberForActiveTree() const;
brianderson 2017/02/24 01:08:36 Can these be collapsed into a single getter called
Eric Seckler 2017/02/27 11:50:32 Done.
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 } 210 }
207 211
208 base::WeakPtrFactory<Scheduler> weak_factory_; 212 base::WeakPtrFactory<Scheduler> weak_factory_;
209 213
210 DISALLOW_COPY_AND_ASSIGN(Scheduler); 214 DISALLOW_COPY_AND_ASSIGN(Scheduler);
211 }; 215 };
212 216
213 } // namespace cc 217 } // namespace cc
214 218
215 #endif // CC_SCHEDULER_SCHEDULER_H_ 219 #endif // CC_SCHEDULER_SCHEDULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698