| 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 11 matching lines...) Expand all Loading... |
| 22 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); | 22 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); |
| 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 DidReceiveInputEventOnCompositorThread() override; | 31 void DidReceiveInputEventOnCompositorThread() override; |
| 32 void DidAnimateForInputOnCompositorThread() override; |
| 32 bool ShouldYieldForHighPriorityWork() override; | 33 bool ShouldYieldForHighPriorityWork() override; |
| 33 void Shutdown() override; | 34 void Shutdown() override; |
| 34 | 35 |
| 35 protected: | 36 protected: |
| 36 // Virtual for testing. | 37 // Virtual for testing. |
| 37 virtual base::TimeTicks Now() const; | 38 virtual base::TimeTicks Now() const; |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 friend class RendererSchedulerImplTest; | 41 friend class RendererSchedulerImplTest; |
| 41 | 42 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 120 |
| 120 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; | 121 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; |
| 121 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; | 122 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; |
| 122 | 123 |
| 123 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); | 124 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 } // namespace content | 127 } // namespace content |
| 127 | 128 |
| 128 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ | 129 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ |
| OLD | NEW |