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 #ifndef CONTENT_TEST_FAKE_RENDERER_SCHEDULER_H_
6 #define CONTENT_TEST_FAKE_RENDERER_SCHEDULER_H_
8 #include "content/renderer/scheduler/renderer_scheduler.h"
12 class FakeRendererScheduler
: public RendererScheduler
{
14 FakeRendererScheduler();
15 ~FakeRendererScheduler() override
;
17 // RendererScheduler implementation.
18 scoped_refptr
<base::SingleThreadTaskRunner
> DefaultTaskRunner() override
;
19 scoped_refptr
<base::SingleThreadTaskRunner
> CompositorTaskRunner() override
;
20 scoped_refptr
<SingleThreadIdleTaskRunner
> IdleTaskRunner() override
;
21 void WillBeginFrame(const cc::BeginFrameArgs
& args
) override
;
22 void DidCommitFrameToCompositor() override
;
23 void DidReceiveInputEventOnCompositorThread(
24 blink::WebInputEvent::Type type
) override
;
25 void DidAnimateForInputOnCompositorThread() override
;
26 bool ShouldYieldForHighPriorityWork() override
;
27 void Shutdown() override
;
30 DISALLOW_COPY_AND_ASSIGN(FakeRendererScheduler
);
33 } // namespace content
35 #endif // CONTENT_TEST_FAKE_RENDERER_SCHEDULER_H_