Roll src/third_party/WebKit e0eac24:489c548 (svn 193311:193320)
[chromium-blink-merge.git] / content / test / fake_renderer_scheduler.h
blob9c9e0fae1cb38afd99e50055673739198d915292
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"
10 namespace content {
12 class FakeRendererScheduler : public RendererScheduler {
13 public:
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<base::SingleThreadTaskRunner> LoadingTaskRunner() override;
21 scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() override;
22 void WillBeginFrame(const cc::BeginFrameArgs& args) override;
23 void BeginFrameNotExpectedSoon() override;
24 void DidCommitFrameToCompositor() override;
25 void DidReceiveInputEventOnCompositorThread(
26 const blink::WebInputEvent& web_input_event) override;
27 void DidAnimateForInputOnCompositorThread() override;
28 bool IsHighPriorityWorkAnticipated() override;
29 bool CanExceedIdleDeadlineIfRequired() const override;
30 bool ShouldYieldForHighPriorityWork() override;
31 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override;
32 void RemoveTaskObserver(
33 base::MessageLoop::TaskObserver* task_observer) override;
34 void Shutdown() override;
36 private:
37 DISALLOW_COPY_AND_ASSIGN(FakeRendererScheduler);
40 } // namespace content
42 #endif // CONTENT_TEST_FAKE_RENDERER_SCHEDULER_H_