Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: content/renderer/scheduler/null_renderer_scheduler.h

Issue 692483002: Hook up DidReceiveInputEvent to the blink scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Trying to fix diff base Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 DidReceiveInputEvent() override; 23 void DidReceiveInputEvent() override;
24 void DidAnimate() override;
24 bool ShouldYieldForHighPriorityWork() override; 25 bool ShouldYieldForHighPriorityWork() override;
25 void Shutdown() override; 26 void Shutdown() override;
26 27
27 private: 28 private:
28 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 29 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
29 scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_; 30 scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_;
30 31
31 DISALLOW_COPY_AND_ASSIGN(NullRendererScheduler); 32 DISALLOW_COPY_AND_ASSIGN(NullRendererScheduler);
32 }; 33 };
33 34
34 } // namespace content 35 } // namespace content
35 36
36 #endif // CONTENT_RENDERER_SCHEDULER_NULL_RENDERER_SCHEDULER_H_ 37 #endif // CONTENT_RENDERER_SCHEDULER_NULL_RENDERER_SCHEDULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698