| 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 18 matching lines...) Expand all Loading... |
| 29 RendererSchedulerImpl( | 29 RendererSchedulerImpl( |
| 30 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); | 30 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); |
| 31 ~RendererSchedulerImpl() override; | 31 ~RendererSchedulerImpl() override; |
| 32 | 32 |
| 33 // RendererScheduler implementation: | 33 // RendererScheduler implementation: |
| 34 scoped_refptr<base::SingleThreadTaskRunner> DefaultTaskRunner() override; | 34 scoped_refptr<base::SingleThreadTaskRunner> DefaultTaskRunner() override; |
| 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 BeginFrameNotExpectedSoon() override; |
| 39 void DidCommitFrameToCompositor() override; | 40 void DidCommitFrameToCompositor() override; |
| 40 void DidReceiveInputEventOnCompositorThread( | 41 void DidReceiveInputEventOnCompositorThread( |
| 41 const blink::WebInputEvent& web_input_event) override; | 42 const blink::WebInputEvent& web_input_event) override; |
| 42 void DidAnimateForInputOnCompositorThread() override; | 43 void DidAnimateForInputOnCompositorThread() override; |
| 43 bool IsHighPriorityWorkAnticipated() override; | 44 bool IsHighPriorityWorkAnticipated() override; |
| 44 bool ShouldYieldForHighPriorityWork() override; | 45 bool ShouldYieldForHighPriorityWork() override; |
| 45 void Shutdown() override; | 46 void Shutdown() override; |
| 46 | 47 |
| 47 void SetTimeSourceForTesting(scoped_refptr<cc::TestNowSource> time_source); | 48 void SetTimeSourceForTesting(scoped_refptr<cc::TestNowSource> time_source); |
| 48 | 49 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 160 |
| 160 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; | 161 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; |
| 161 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; | 162 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; |
| 162 | 163 |
| 163 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); | 164 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); |
| 164 }; | 165 }; |
| 165 | 166 |
| 166 } // namespace content | 167 } // namespace content |
| 167 | 168 |
| 168 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ | 169 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ |
| OLD | NEW |