| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "components/scheduler/child/compositor_worker_scheduler.h" | 5 #include "components/scheduler/child/compositor_worker_scheduler.h" |
| 6 | 6 |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "base/threading/thread.h" | 8 #include "base/threading/thread.h" |
| 9 | 9 |
| 10 namespace scheduler { | 10 namespace scheduler { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 return QueuePriority::NORMAL_PRIORITY; | 70 return QueuePriority::NORMAL_PRIORITY; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 void SetPumpPolicy(PumpPolicy pump_policy) override { NOTREACHED(); } | 73 void SetPumpPolicy(PumpPolicy pump_policy) override { NOTREACHED(); } |
| 74 | 74 |
| 75 PumpPolicy GetPumpPolicy() const override { | 75 PumpPolicy GetPumpPolicy() const override { |
| 76 NOTREACHED(); | 76 NOTREACHED(); |
| 77 return PumpPolicy::AUTO; | 77 return PumpPolicy::AUTO; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 void PumpQueue(bool may_post_dowork) override { NOTREACHED(); } | 80 void PumpQueue(LazyNow*, bool may_post_dowork) override { NOTREACHED(); } |
| 81 | 81 |
| 82 void AddTaskObserver( | 82 void AddTaskObserver( |
| 83 base::MessageLoop::TaskObserver* task_observer) override { | 83 base::MessageLoop::TaskObserver* task_observer) override { |
| 84 NOTREACHED(); | 84 NOTREACHED(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 void RemoveTaskObserver( | 87 void RemoveTaskObserver( |
| 88 base::MessageLoop::TaskObserver* task_observer) override { | 88 base::MessageLoop::TaskObserver* task_observer) override { |
| 89 NOTREACHED(); | 89 NOTREACHED(); |
| 90 } | 90 } |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 base::TimeTicks CompositorWorkerScheduler::WillProcessIdleTask() { | 157 base::TimeTicks CompositorWorkerScheduler::WillProcessIdleTask() { |
| 158 // TODO(flackr): Return the next frame time as the deadline instead. | 158 // TODO(flackr): Return the next frame time as the deadline instead. |
| 159 // TODO(flackr): Ensure that oilpan GC does happen on the compositor thread | 159 // TODO(flackr): Ensure that oilpan GC does happen on the compositor thread |
| 160 // even though we will have no long idle periods. https://crbug.com/609531 | 160 // even though we will have no long idle periods. https://crbug.com/609531 |
| 161 return base::TimeTicks::Now() + base::TimeDelta::FromMillisecondsD(16.7); | 161 return base::TimeTicks::Now() + base::TimeDelta::FromMillisecondsD(16.7); |
| 162 } | 162 } |
| 163 | 163 |
| 164 void CompositorWorkerScheduler::DidProcessIdleTask() {} | 164 void CompositorWorkerScheduler::DidProcessIdleTask() {} |
| 165 | 165 |
| 166 } // namespace scheduler | 166 } // namespace scheduler |
| OLD | NEW |