Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1108)

Side by Side Diff: components/scheduler/base/task_queue_selector.cc

Issue 1374653003: scheduler: Add a base directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed gn clobber build. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/scheduler/base/task_queue_selector.h ('k') | components/scheduler/base/task_queue_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698