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

Side by Side Diff: content/renderer/scheduler/renderer_scheduler_impl.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_RENDERER_SCHEDULER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_
6 #define CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ 6 #define CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_
7 7
8 #include "base/atomicops.h" 8 #include "base/atomicops.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
(...skipping 11 matching lines...) Expand all
22 RendererSchedulerImpl(); 22 RendererSchedulerImpl();
23 ~RendererSchedulerImpl() override; 23 ~RendererSchedulerImpl() override;
24 24
25 // RendererScheduler implementation: 25 // RendererScheduler implementation:
26 scoped_refptr<base::SingleThreadTaskRunner> DefaultTaskRunner() override; 26 scoped_refptr<base::SingleThreadTaskRunner> DefaultTaskRunner() override;
27 scoped_refptr<base::SingleThreadTaskRunner> CompositorTaskRunner() override; 27 scoped_refptr<base::SingleThreadTaskRunner> CompositorTaskRunner() override;
28 scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() override; 28 scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() override;
29 void WillBeginFrame(const cc::BeginFrameArgs& args) override; 29 void WillBeginFrame(const cc::BeginFrameArgs& args) override;
30 void DidCommitFrameToCompositor() override; 30 void DidCommitFrameToCompositor() override;
31 void DidReceiveInputEvent() override; 31 void DidReceiveInputEvent() override;
32 void DidAnimate() override;
32 bool ShouldYieldForHighPriorityWork() override; 33 bool ShouldYieldForHighPriorityWork() override;
33 void Shutdown() override; 34 void Shutdown() override;
34 35
35 protected: 36 protected:
36 RendererSchedulerImpl( 37 RendererSchedulerImpl(
37 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); 38 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner);
38 39
39 // Virtual for testing. 40 // Virtual for testing.
40 virtual base::TimeTicks Now() const; 41 virtual base::TimeTicks Now() const;
41 42
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 base::TimeTicks last_input_time_; 99 base::TimeTicks last_input_time_;
99 base::subtle::AtomicWord policy_may_need_update_; 100 base::subtle::AtomicWord policy_may_need_update_;
100 101
101 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; 102 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_;
102 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; 103 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_;
103 }; 104 };
104 105
105 } // namespace content 106 } // namespace content
106 107
107 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ 108 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698