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
3 // found in the LICENSE file.
5 #include "content/test/fake_renderer_scheduler.h"
9 FakeRendererScheduler::FakeRendererScheduler() {
12 FakeRendererScheduler::~FakeRendererScheduler() {
15 scoped_refptr
<scheduler::TaskQueue
> FakeRendererScheduler::DefaultTaskRunner() {
19 scoped_refptr
<base::SingleThreadTaskRunner
>
20 FakeRendererScheduler::CompositorTaskRunner() {
24 scoped_refptr
<base::SingleThreadTaskRunner
>
25 FakeRendererScheduler::LoadingTaskRunner() {
29 scoped_refptr
<scheduler::SingleThreadIdleTaskRunner
>
30 FakeRendererScheduler::IdleTaskRunner() {
34 scoped_refptr
<scheduler::TaskQueue
> FakeRendererScheduler::TimerTaskRunner() {
38 void FakeRendererScheduler::WillBeginFrame(const cc::BeginFrameArgs
& args
) {
41 void FakeRendererScheduler::BeginFrameNotExpectedSoon() {
44 void FakeRendererScheduler::DidCommitFrameToCompositor() {
47 void FakeRendererScheduler::DidHandleInputEventOnCompositorThread(
48 const blink::WebInputEvent
& web_input_event
,
49 InputEventState event_state
) {
52 void FakeRendererScheduler::DidHandleInputEventOnMainThread(
53 const blink::WebInputEvent
& web_input_event
) {
56 void FakeRendererScheduler::DidAnimateForInputOnCompositorThread() {
59 bool FakeRendererScheduler::IsHighPriorityWorkAnticipated() {
63 void FakeRendererScheduler::OnRendererHidden() {
66 void FakeRendererScheduler::OnRendererVisible() {
69 void FakeRendererScheduler::OnRendererBackgrounded() {
72 void FakeRendererScheduler::OnRendererForegrounded() {
75 void FakeRendererScheduler::OnPageLoadStarted() {
78 bool FakeRendererScheduler::ShouldYieldForHighPriorityWork() {
82 bool FakeRendererScheduler::CanExceedIdleDeadlineIfRequired() const {
86 void FakeRendererScheduler::AddTaskObserver(
87 base::MessageLoop::TaskObserver
* task_observer
) {
90 void FakeRendererScheduler::RemoveTaskObserver(
91 base::MessageLoop::TaskObserver
* task_observer
) {
94 void FakeRendererScheduler::Shutdown() {
97 void FakeRendererScheduler::SuspendTimerQueue() {
100 void FakeRendererScheduler::ResumeTimerQueue() {
103 void FakeRendererScheduler::SetTimerQueueSuspensionWhenBackgroundedEnabled(
106 } // namespace content