ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / content / renderer / scheduler / null_renderer_scheduler.h
blobd983e72f5ad1c79daaa55c58bcf27d0776320ad9
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_RENDERER_SCHEDULER_NULL_RENDERER_SCHEDULER_H_
6 #define CONTENT_RENDERER_SCHEDULER_NULL_RENDERER_SCHEDULER_H_
8 #include "content/renderer/scheduler/renderer_scheduler.h"
10 namespace content {
12 class NullRendererScheduler : public RendererScheduler {
13 public:
14 NullRendererScheduler();
15 ~NullRendererScheduler() override;
17 scoped_refptr<base::SingleThreadTaskRunner> DefaultTaskRunner() override;
18 scoped_refptr<base::SingleThreadTaskRunner> CompositorTaskRunner() override;
19 scoped_refptr<base::SingleThreadTaskRunner> LoadingTaskRunner() override;
20 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 ShouldYieldForHighPriorityWork() override;
30 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override;
31 void RemoveTaskObserver(
32 base::MessageLoop::TaskObserver* task_observer) override;
33 void Shutdown() override;
35 private:
36 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
37 scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_;
39 DISALLOW_COPY_AND_ASSIGN(NullRendererScheduler);
42 } // namespace content
44 #endif // CONTENT_RENDERER_SCHEDULER_NULL_RENDERER_SCHEDULER_H_