| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |