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

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: Adding some input event filter logic 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 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_
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/renderer/scheduler/null_renderer_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698