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 25 matching lines...) Expand all Loading... | |
36 scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() override; | 36 scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() override; |
37 scoped_refptr<base::SingleThreadTaskRunner> LoadingTaskRunner() override; | 37 scoped_refptr<base::SingleThreadTaskRunner> LoadingTaskRunner() override; |
38 void WillBeginFrame(const cc::BeginFrameArgs& args) override; | 38 void WillBeginFrame(const cc::BeginFrameArgs& args) override; |
39 void DidCommitFrameToCompositor() override; | 39 void DidCommitFrameToCompositor() override; |
40 void DidReceiveInputEventOnCompositorThread( | 40 void DidReceiveInputEventOnCompositorThread( |
41 const blink::WebInputEvent& web_input_event) override; | 41 const blink::WebInputEvent& web_input_event) override; |
42 void DidAnimateForInputOnCompositorThread() override; | 42 void DidAnimateForInputOnCompositorThread() override; |
43 bool IsHighPriorityWorkAnticipated() override; | 43 bool IsHighPriorityWorkAnticipated() override; |
44 bool ShouldYieldForHighPriorityWork() override; | 44 bool ShouldYieldForHighPriorityWork() override; |
45 void Shutdown() override; | 45 void Shutdown() override; |
46 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; | |
47 void RemoveTaskObserver( | |
48 base::MessageLoop::TaskObserver* task_observer) override; | |
rmcilroy
2015/02/13 12:53:22
nit - move above shutdown
Sami
2015/02/13 14:27:26
Done.
| |
46 | 49 |
47 void SetTimeSourceForTesting(scoped_refptr<cc::TestNowSource> time_source); | 50 void SetTimeSourceForTesting(scoped_refptr<cc::TestNowSource> time_source); |
48 | 51 |
49 private: | 52 private: |
50 friend class RendererSchedulerImplTest; | 53 friend class RendererSchedulerImplTest; |
51 | 54 |
52 // Keep RendererSchedulerImpl::TaskQueueIdToString in sync with this enum. | 55 // Keep RendererSchedulerImpl::TaskQueueIdToString in sync with this enum. |
53 enum QueueId { | 56 enum QueueId { |
54 DEFAULT_TASK_QUEUE, | 57 DEFAULT_TASK_QUEUE, |
55 COMPOSITOR_TASK_QUEUE, | 58 COMPOSITOR_TASK_QUEUE, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
159 | 162 |
160 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; | 163 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; |
161 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; | 164 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; |
162 | 165 |
163 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); | 166 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); |
164 }; | 167 }; |
165 | 168 |
166 } // namespace content | 169 } // namespace content |
167 | 170 |
168 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ | 171 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ |
OLD | NEW |