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
3 // found in the LICENSE file.
5 #include "components/scheduler/renderer/renderer_web_scheduler_impl.h"
7 #include "components/scheduler/renderer/renderer_scheduler.h"
11 RendererWebSchedulerImpl::RendererWebSchedulerImpl(
12 RendererScheduler
* renderer_scheduler
)
13 : WebSchedulerImpl(renderer_scheduler
,
14 renderer_scheduler
->IdleTaskRunner(),
15 renderer_scheduler
->LoadingTaskRunner(),
16 renderer_scheduler
->TimerTaskRunner()),
17 renderer_scheduler_(renderer_scheduler
) {
20 RendererWebSchedulerImpl::~RendererWebSchedulerImpl() {
23 void RendererWebSchedulerImpl::suspendTimerQueue() {
24 renderer_scheduler_
->SuspendTimerQueue();
27 void RendererWebSchedulerImpl::resumeTimerQueue() {
28 renderer_scheduler_
->ResumeTimerQueue();
31 } // namespace scheduler