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 24 matching lines...) Expand all Loading... |
35 scoped_refptr<base::SingleThreadTaskRunner> CompositorTaskRunner() override; | 35 scoped_refptr<base::SingleThreadTaskRunner> CompositorTaskRunner() override; |
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 AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; | |
46 void RemoveTaskObserver( | |
47 base::MessageLoop::TaskObserver* task_observer) override; | |
48 void Shutdown() override; | 45 void Shutdown() override; |
49 | 46 |
50 void SetTimeSourceForTesting(scoped_refptr<cc::TestNowSource> time_source); | 47 void SetTimeSourceForTesting(scoped_refptr<cc::TestNowSource> time_source); |
51 | 48 |
52 private: | 49 private: |
53 friend class RendererSchedulerImplTest; | 50 friend class RendererSchedulerImplTest; |
54 | 51 |
55 // Keep RendererSchedulerImpl::TaskQueueIdToString in sync with this enum. | 52 // Keep RendererSchedulerImpl::TaskQueueIdToString in sync with this enum. |
56 enum QueueId { | 53 enum QueueId { |
57 DEFAULT_TASK_QUEUE, | 54 DEFAULT_TASK_QUEUE, |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 159 |
163 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; | 160 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; |
164 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; | 161 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; |
165 | 162 |
166 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); | 163 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); |
167 }; | 164 }; |
168 | 165 |
169 } // namespace content | 166 } // namespace content |
170 | 167 |
171 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ | 168 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ |
OLD | NEW |