| 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 <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 bool WillDrawIfNeeded() const; | 144 bool WillDrawIfNeeded() const; |
| 145 | 145 |
| 146 base::TimeTicks AnticipatedDrawTime() const; | 146 base::TimeTicks AnticipatedDrawTime() const; |
| 147 | 147 |
| 148 void NotifyBeginMainFrameStarted(); | 148 void NotifyBeginMainFrameStarted(); |
| 149 | 149 |
| 150 base::TimeTicks LastBeginImplFrameTime(); | 150 base::TimeTicks LastBeginImplFrameTime(); |
| 151 | 151 |
| 152 scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const; | 152 scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const; |
| 153 virtual void AsValueInto(base::debug::TracedValue* value) const OVERRIDE; | 153 virtual void AsValueInto(base::debug::TracedValue* value) const override; |
| 154 | 154 |
| 155 void SetContinuousPainting(bool continuous_painting) { | 155 void SetContinuousPainting(bool continuous_painting) { |
| 156 state_machine_.SetContinuousPainting(continuous_painting); | 156 state_machine_.SetContinuousPainting(continuous_painting); |
| 157 } | 157 } |
| 158 | 158 |
| 159 // BeginFrameObserverMixin | 159 // BeginFrameObserverMixin |
| 160 virtual bool OnBeginFrameMixInDelegate(const BeginFrameArgs& args) OVERRIDE; | 160 virtual bool OnBeginFrameMixInDelegate(const BeginFrameArgs& args) override; |
| 161 | 161 |
| 162 protected: | 162 protected: |
| 163 Scheduler(SchedulerClient* client, | 163 Scheduler(SchedulerClient* client, |
| 164 const SchedulerSettings& scheduler_settings, | 164 const SchedulerSettings& scheduler_settings, |
| 165 int layer_tree_host_id, | 165 int layer_tree_host_id, |
| 166 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 166 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 167 SchedulerFrameSourcesConstructor* frame_sources_constructor); | 167 SchedulerFrameSourcesConstructor* frame_sources_constructor); |
| 168 | 168 |
| 169 // virtual for testing - Don't call these in the constructor or | 169 // virtual for testing - Don't call these in the constructor or |
| 170 // destructor! | 170 // destructor! |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 236 |
| 237 friend class SchedulerFrameSourcesConstructor; | 237 friend class SchedulerFrameSourcesConstructor; |
| 238 friend class TestSchedulerFrameSourcesConstructor; | 238 friend class TestSchedulerFrameSourcesConstructor; |
| 239 | 239 |
| 240 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 240 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 241 }; | 241 }; |
| 242 | 242 |
| 243 } // namespace cc | 243 } // namespace cc |
| 244 | 244 |
| 245 #endif // CC_SCHEDULER_SCHEDULER_H_ | 245 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |