| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/task_queue_selector.h" | 5 #include "components/scheduler/base/task_queue_selector.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/trace_event/trace_event_argument.h" | 8 #include "base/trace_event/trace_event_argument.h" |
| 9 #include "components/scheduler/child/task_queue_impl.h" | 9 #include "components/scheduler/base/task_queue_impl.h" |
| 10 | 10 |
| 11 namespace scheduler { | 11 namespace scheduler { |
| 12 namespace internal { | 12 namespace internal { |
| 13 | 13 |
| 14 TaskQueueSelector::TaskQueueSelector() | 14 TaskQueueSelector::TaskQueueSelector() |
| 15 : task_queue_sets_(TaskQueue::QUEUE_PRIORITY_COUNT), | 15 : task_queue_sets_(TaskQueue::QUEUE_PRIORITY_COUNT), |
| 16 starvation_count_(0), | 16 starvation_count_(0), |
| 17 task_queue_selector_observer_(nullptr) {} | 17 task_queue_selector_observer_(nullptr) {} |
| 18 | 18 |
| 19 TaskQueueSelector::~TaskQueueSelector() {} | 19 TaskQueueSelector::~TaskQueueSelector() {} |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 priority < TaskQueue::DISABLED_PRIORITY; | 118 priority < TaskQueue::DISABLED_PRIORITY; |
| 119 priority = NextPriority(priority)) { | 119 priority = NextPriority(priority)) { |
| 120 if (!task_queue_sets_.IsSetEmpty(priority)) | 120 if (!task_queue_sets_.IsSetEmpty(priority)) |
| 121 return false; | 121 return false; |
| 122 } | 122 } |
| 123 return true; | 123 return true; |
| 124 } | 124 } |
| 125 | 125 |
| 126 } // namespace internal | 126 } // namespace internal |
| 127 } // namespace scheduler | 127 } // namespace scheduler |
| OLD | NEW |