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::OnPageLoadStarted() {
72 bool FakeRendererScheduler::ShouldYieldForHighPriorityWork() {
76 bool FakeRendererScheduler::CanExceedIdleDeadlineIfRequired() const {
80 void FakeRendererScheduler::AddTaskObserver(
81 base::MessageLoop::TaskObserver
* task_observer
) {
84 void FakeRendererScheduler::RemoveTaskObserver(
85 base::MessageLoop::TaskObserver
* task_observer
) {
88 void FakeRendererScheduler::Shutdown() {
91 void FakeRendererScheduler::SuspendTimerQueue() {
94 void FakeRendererScheduler::ResumeTimerQueue() {
97 } // namespace content