| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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  Loading... | 
| 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_ | 
| OLD | NEW | 
|---|