OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_TEST_FAKE_RENDERER_SCHEDULER_H_ | 5 #ifndef CONTENT_TEST_FAKE_RENDERER_SCHEDULER_H_ |
6 #define CONTENT_TEST_FAKE_RENDERER_SCHEDULER_H_ | 6 #define CONTENT_TEST_FAKE_RENDERER_SCHEDULER_H_ |
7 | 7 |
8 #include "content/renderer/scheduler/renderer_scheduler.h" | 8 #include "content/renderer/scheduler/renderer_scheduler.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 class FakeRendererScheduler : public RendererScheduler { | 12 class FakeRendererScheduler : public RendererScheduler { |
13 public: | 13 public: |
14 FakeRendererScheduler(); | 14 FakeRendererScheduler(); |
15 ~FakeRendererScheduler() override; | 15 ~FakeRendererScheduler() override; |
16 | 16 |
17 // RendererScheduler implementation. | 17 // RendererScheduler implementation. |
18 scoped_refptr<base::SingleThreadTaskRunner> DefaultTaskRunner() override; | 18 scoped_refptr<base::SingleThreadTaskRunner> DefaultTaskRunner() override; |
19 scoped_refptr<base::SingleThreadTaskRunner> CompositorTaskRunner() override; | 19 scoped_refptr<base::SingleThreadTaskRunner> CompositorTaskRunner() override; |
20 scoped_refptr<base::SingleThreadTaskRunner> LoadingTaskRunner() override; | 20 scoped_refptr<base::SingleThreadTaskRunner> LoadingTaskRunner() override; |
21 scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() override; | 21 scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() override; |
22 void WillBeginFrame(const cc::BeginFrameArgs& args) override; | 22 void WillBeginFrame(const cc::BeginFrameArgs& args) override; |
23 void BeginFrameNotExpectedSoon() override; | 23 void BeginFrameNotExpectedSoon() override; |
24 void DidCommitFrameToCompositor() override; | 24 void DidCommitFrameToCompositor() override; |
25 void DidReceiveInputEventOnCompositorThread( | 25 void DidReceiveInputEventOnCompositorThread( |
26 const blink::WebInputEvent& web_input_event) override; | 26 const blink::WebInputEvent& web_input_event) override; |
27 void DidAnimateForInputOnCompositorThread() override; | 27 void DidAnimateForInputOnCompositorThread() override; |
28 bool IsHighPriorityWorkAnticipated() override; | 28 bool IsHighPriorityWorkAnticipated() override; |
29 bool ShouldYieldForHighPriorityWork() override; | 29 bool ShouldYieldForHighPriorityWork() override; |
| 30 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; |
| 31 void RemoveTaskObserver( |
| 32 base::MessageLoop::TaskObserver* task_observer) override; |
30 void Shutdown() override; | 33 void Shutdown() override; |
31 | 34 |
32 private: | 35 private: |
33 DISALLOW_COPY_AND_ASSIGN(FakeRendererScheduler); | 36 DISALLOW_COPY_AND_ASSIGN(FakeRendererScheduler); |
34 }; | 37 }; |
35 | 38 |
36 } // namespace content | 39 } // namespace content |
37 | 40 |
38 #endif // CONTENT_TEST_FAKE_RENDERER_SCHEDULER_H_ | 41 #endif // CONTENT_TEST_FAKE_RENDERER_SCHEDULER_H_ |
OLD | NEW |