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_RENDERER_SCHEDULER_NULL_RENDERER_SCHEDULER_H_ | 5 #ifndef CONTENT_RENDERER_SCHEDULER_NULL_RENDERER_SCHEDULER_H_ |
6 #define CONTENT_RENDERER_SCHEDULER_NULL_RENDERER_SCHEDULER_H_ | 6 #define CONTENT_RENDERER_SCHEDULER_NULL_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 NullRendererScheduler : public RendererScheduler { | 12 class NullRendererScheduler : public RendererScheduler { |
13 public: | 13 public: |
14 NullRendererScheduler(); | 14 NullRendererScheduler(); |
15 ~NullRendererScheduler() override; | 15 ~NullRendererScheduler() override; |
16 | 16 |
17 scoped_refptr<base::SingleThreadTaskRunner> DefaultTaskRunner() override; | 17 scoped_refptr<base::SingleThreadTaskRunner> DefaultTaskRunner() override; |
18 scoped_refptr<base::SingleThreadTaskRunner> CompositorTaskRunner() override; | 18 scoped_refptr<base::SingleThreadTaskRunner> CompositorTaskRunner() override; |
19 scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() override; | 19 scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() override; |
20 | 20 |
21 void WillBeginFrame(const cc::BeginFrameArgs& args) override; | 21 void WillBeginFrame(const cc::BeginFrameArgs& args) override; |
22 void DidCommitFrameToCompositor() override; | 22 void DidCommitFrameToCompositor() override; |
23 void DidReceiveInputEventOnCompositorThread() override; | 23 void DidReceiveInputEventOnCompositorThread( |
| 24 blink::WebInputEvent::Type type) override; |
| 25 void DidAnimateForInputOnCompositorThread() override; |
24 bool ShouldYieldForHighPriorityWork() override; | 26 bool ShouldYieldForHighPriorityWork() override; |
25 void Shutdown() override; | 27 void Shutdown() override; |
26 | 28 |
27 private: | 29 private: |
28 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 30 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
29 scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_; | 31 scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_; |
30 | 32 |
31 DISALLOW_COPY_AND_ASSIGN(NullRendererScheduler); | 33 DISALLOW_COPY_AND_ASSIGN(NullRendererScheduler); |
32 }; | 34 }; |
33 | 35 |
34 } // namespace content | 36 } // namespace content |
35 | 37 |
36 #endif // CONTENT_RENDERER_SCHEDULER_NULL_RENDERER_SCHEDULER_H_ | 38 #endif // CONTENT_RENDERER_SCHEDULER_NULL_RENDERER_SCHEDULER_H_ |
OLD | NEW |