Introduce a loading policy to the renderer scheduler
[chromium-blink-merge.git] / content / test / fake_renderer_scheduler.cc
blob2a3fe408e23405ea8f72ac45d507463231527537
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"
7 namespace content {
9 FakeRendererScheduler::FakeRendererScheduler() {
12 FakeRendererScheduler::~FakeRendererScheduler() {
15 scoped_refptr<base::SingleThreadTaskRunner>
16 FakeRendererScheduler::DefaultTaskRunner() {
17 return nullptr;
20 scoped_refptr<base::SingleThreadTaskRunner>
21 FakeRendererScheduler::CompositorTaskRunner() {
22 return nullptr;
25 scoped_refptr<base::SingleThreadTaskRunner>
26 FakeRendererScheduler::LoadingTaskRunner() {
27 return nullptr;
30 scoped_refptr<scheduler::SingleThreadIdleTaskRunner>
31 FakeRendererScheduler::IdleTaskRunner() {
32 return nullptr;
35 scoped_refptr<base::SingleThreadTaskRunner>
36 FakeRendererScheduler::TimerTaskRunner() {
37 return nullptr;
40 void FakeRendererScheduler::WillBeginFrame(const cc::BeginFrameArgs& args) {
43 void FakeRendererScheduler::BeginFrameNotExpectedSoon() {
46 void FakeRendererScheduler::DidCommitFrameToCompositor() {
49 void FakeRendererScheduler::DidHandleInputEventOnCompositorThread(
50 const blink::WebInputEvent& web_input_event,
51 InputEventState event_state) {
54 void FakeRendererScheduler::DidHandleInputEventOnMainThread(
55 const blink::WebInputEvent& web_input_event) {
58 void FakeRendererScheduler::DidAnimateForInputOnCompositorThread() {
61 bool FakeRendererScheduler::IsHighPriorityWorkAnticipated() {
62 return false;
65 void FakeRendererScheduler::OnRendererHidden() {
68 void FakeRendererScheduler::OnRendererVisible() {
71 void FakeRendererScheduler::OnPageLoadStarted() {
74 bool FakeRendererScheduler::ShouldYieldForHighPriorityWork() {
75 return false;
78 bool FakeRendererScheduler::CanExceedIdleDeadlineIfRequired() const {
79 return false;
82 void FakeRendererScheduler::AddTaskObserver(
83 base::MessageLoop::TaskObserver* task_observer) {
86 void FakeRendererScheduler::RemoveTaskObserver(
87 base::MessageLoop::TaskObserver* task_observer) {
90 void FakeRendererScheduler::Shutdown() {
93 void FakeRendererScheduler::SuspendTimerQueue() {
96 void FakeRendererScheduler::ResumeTimerQueue() {
99 } // namespace content