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_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 21 matching lines...) Expand all Loading... |
32 // RendererScheduler implementation: | 32 // RendererScheduler implementation: |
33 scoped_refptr<base::SingleThreadTaskRunner> DefaultTaskRunner() override; | 33 scoped_refptr<base::SingleThreadTaskRunner> DefaultTaskRunner() override; |
34 scoped_refptr<base::SingleThreadTaskRunner> CompositorTaskRunner() override; | 34 scoped_refptr<base::SingleThreadTaskRunner> CompositorTaskRunner() override; |
35 scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() override; | 35 scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() override; |
36 scoped_refptr<base::SingleThreadTaskRunner> LoadingTaskRunner() override; | 36 scoped_refptr<base::SingleThreadTaskRunner> LoadingTaskRunner() override; |
37 void WillBeginFrame(const cc::BeginFrameArgs& args) override; | 37 void WillBeginFrame(const cc::BeginFrameArgs& args) override; |
38 void DidCommitFrameToCompositor() override; | 38 void DidCommitFrameToCompositor() override; |
39 void DidReceiveInputEventOnCompositorThread( | 39 void DidReceiveInputEventOnCompositorThread( |
40 blink::WebInputEvent::Type type) override; | 40 blink::WebInputEvent::Type type) override; |
41 void DidAnimateForInputOnCompositorThread() override; | 41 void DidAnimateForInputOnCompositorThread() override; |
| 42 bool ShouldAnticipateHighPriorityWork() override; |
42 bool ShouldYieldForHighPriorityWork() override; | 43 bool ShouldYieldForHighPriorityWork() override; |
43 void Shutdown() override; | 44 void Shutdown() override; |
44 | 45 |
45 protected: | 46 protected: |
46 // Virtual for testing. | 47 // Virtual for testing. |
47 virtual base::TimeTicks Now() const; | 48 virtual base::TimeTicks Now() const; |
48 | 49 |
49 private: | 50 private: |
50 friend class RendererSchedulerImplTest; | 51 friend class RendererSchedulerImplTest; |
51 | 52 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 142 |
142 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; | 143 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; |
143 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; | 144 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; |
144 | 145 |
145 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); | 146 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); |
146 }; | 147 }; |
147 | 148 |
148 } // namespace content | 149 } // namespace content |
149 | 150 |
150 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ | 151 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ |
OLD | NEW |