| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // Pass in a main_thread_start_time of base::TimeTicks() if it is not | 130 // Pass in a main_thread_start_time of base::TimeTicks() if it is not |
| 131 // known or not trustworthy (e.g. blink is running on a remote channel) | 131 // known or not trustworthy (e.g. blink is running on a remote channel) |
| 132 // to signal that the start time isn't known and should not be used for | 132 // to signal that the start time isn't known and should not be used for |
| 133 // scheduling or statistics purposes. | 133 // scheduling or statistics purposes. |
| 134 void NotifyBeginMainFrameStarted(base::TimeTicks main_thread_start_time); | 134 void NotifyBeginMainFrameStarted(base::TimeTicks main_thread_start_time); |
| 135 | 135 |
| 136 base::TimeTicks LastBeginImplFrameTime(); | 136 base::TimeTicks LastBeginImplFrameTime(); |
| 137 | 137 |
| 138 void SetDeferCommits(bool defer_commits); | 138 void SetDeferCommits(bool defer_commits); |
| 139 | 139 |
| 140 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; | 140 scoped_ptr<base::trace_event::ConvertableToTraceFormat> AsValue() const; |
| 141 void AsValueInto(base::trace_event::TracedValue* value) const override; | 141 void AsValueInto(base::trace_event::TracedValue* value) const override; |
| 142 | 142 |
| 143 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); | 143 void SetChildrenNeedBeginFrames(bool children_need_begin_frames); |
| 144 void SetVideoNeedsBeginFrames(bool video_needs_begin_frames); | 144 void SetVideoNeedsBeginFrames(bool video_needs_begin_frames); |
| 145 | 145 |
| 146 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); | 146 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); |
| 147 | 147 |
| 148 protected: | 148 protected: |
| 149 Scheduler(SchedulerClient* client, | 149 Scheduler(SchedulerClient* client, |
| 150 const SchedulerSettings& scheduler_settings, | 150 const SchedulerSettings& scheduler_settings, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 } | 235 } |
| 236 | 236 |
| 237 base::WeakPtrFactory<Scheduler> weak_factory_; | 237 base::WeakPtrFactory<Scheduler> weak_factory_; |
| 238 | 238 |
| 239 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 239 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 } // namespace cc | 242 } // namespace cc |
| 243 | 243 |
| 244 #endif // CC_SCHEDULER_SCHEDULER_H_ | 244 #endif // CC_SCHEDULER_SCHEDULER_H_ |
| OLD | NEW |