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
<base::SingleThreadTaskRunner
>
16 FakeRendererScheduler::DefaultTaskRunner() {
20 scoped_refptr
<base::SingleThreadTaskRunner
>
21 FakeRendererScheduler::CompositorTaskRunner() {
25 scoped_refptr
<base::SingleThreadTaskRunner
>
26 FakeRendererScheduler::LoadingTaskRunner() {
30 scoped_refptr
<scheduler::SingleThreadIdleTaskRunner
>
31 FakeRendererScheduler::IdleTaskRunner() {
35 scoped_refptr
<base::SingleThreadTaskRunner
>
36 FakeRendererScheduler::TimerTaskRunner() {
40 void FakeRendererScheduler::WillBeginFrame(const cc::BeginFrameArgs
& args
) {
43 void FakeRendererScheduler::BeginFrameNotExpectedSoon() {
46 void FakeRendererScheduler::DidCommitFrameToCompositor() {
49 void FakeRendererScheduler::DidReceiveInputEventOnCompositorThread(
50 const blink::WebInputEvent
& web_input_event
) {
53 void FakeRendererScheduler::DidAnimateForInputOnCompositorThread() {
56 bool FakeRendererScheduler::IsHighPriorityWorkAnticipated() {
60 void FakeRendererScheduler::OnRendererHidden() {
63 void FakeRendererScheduler::OnRendererVisible() {
66 bool FakeRendererScheduler::ShouldYieldForHighPriorityWork() {
70 bool FakeRendererScheduler::CanExceedIdleDeadlineIfRequired() const {
74 void FakeRendererScheduler::AddTaskObserver(
75 base::MessageLoop::TaskObserver
* task_observer
) {
78 void FakeRendererScheduler::RemoveTaskObserver(
79 base::MessageLoop::TaskObserver
* task_observer
) {
82 void FakeRendererScheduler::Shutdown() {
85 void FakeRendererScheduler::SuspendTimerQueue() {
88 void FakeRendererScheduler::ResumeTimerQueue() {
91 } // namespace content