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

Side by Side Diff: components/scheduler/child/scheduler_helper.cc

Issue 1411843008: Make blink platform time consistent with the timer virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/scheduler_helper.h" 5 #include "components/scheduler/child/scheduler_helper.h"
6 6
7 #include "base/time/default_tick_clock.h" 7 #include "base/time/default_tick_clock.h"
8 #include "base/trace_event/trace_event.h" 8 #include "base/trace_event/trace_event.h"
9 #include "base/trace_event/trace_event_argument.h" 9 #include "base/trace_event/trace_event_argument.h"
10 #include "components/scheduler/base/task_queue_impl.h" 10 #include "components/scheduler/base/task_queue_impl.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 CheckOnValidThread(); 83 CheckOnValidThread();
84 DCHECK(task_queue_manager_.get()); 84 DCHECK(task_queue_manager_.get());
85 task_queue_manager_->SetWorkBatchSize(work_batch_size); 85 task_queue_manager_->SetWorkBatchSize(work_batch_size);
86 } 86 }
87 87
88 TaskQueueManager* SchedulerHelper::GetTaskQueueManagerForTesting() { 88 TaskQueueManager* SchedulerHelper::GetTaskQueueManagerForTesting() {
89 CheckOnValidThread(); 89 CheckOnValidThread();
90 return task_queue_manager_.get(); 90 return task_queue_manager_.get();
91 } 91 }
92 92
93 base::TickClock* SchedulerHelper::tick_clock() const { 93 TaskQueueManagerDelegate* SchedulerHelper::task_queue_manager_delegate() const {
94 return task_queue_manager_->tick_clock(); 94 return task_queue_manager_->delegate();
95 } 95 }
96 96
97 base::TimeTicks SchedulerHelper::NextPendingDelayedTaskRunTime() const { 97 base::TimeTicks SchedulerHelper::NextPendingDelayedTaskRunTime() const {
98 CheckOnValidThread(); 98 CheckOnValidThread();
99 DCHECK(task_queue_manager_.get()); 99 DCHECK(task_queue_manager_.get());
100 return task_queue_manager_->NextPendingDelayedTaskRunTime(); 100 return task_queue_manager_->NextPendingDelayedTaskRunTime();
101 } 101 }
102 102
103 bool SchedulerHelper::GetAndClearSystemIsQuiescentBit() { 103 bool SchedulerHelper::GetAndClearSystemIsQuiescentBit() {
104 CheckOnValidThread(); 104 CheckOnValidThread();
(...skipping 22 matching lines...) Expand all
127 task_queue_manager_->SetObserver(this); 127 task_queue_manager_->SetObserver(this);
128 } 128 }
129 129
130 void SchedulerHelper::OnUnregisterTaskQueue( 130 void SchedulerHelper::OnUnregisterTaskQueue(
131 const scoped_refptr<internal::TaskQueueImpl>& queue) { 131 const scoped_refptr<internal::TaskQueueImpl>& queue) {
132 if (observer_) 132 if (observer_)
133 observer_->OnUnregisterTaskQueue(queue); 133 observer_->OnUnregisterTaskQueue(queue);
134 } 134 }
135 135
136 } // namespace scheduler 136 } // namespace scheduler
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698