Chromium Code Reviews| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 128 scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_; | 128 scoped_refptr<SingleThreadIdleTaskRunner> idle_task_runner_; |
| 129 | 129 |
| 130 base::Closure update_policy_closure_; | 130 base::Closure update_policy_closure_; |
| 131 CancelableClosureHolder end_idle_period_closure_; | 131 CancelableClosureHolder end_idle_period_closure_; |
| 132 | 132 |
| 133 // Don't access current_policy_ directly, instead use SchedulerPolicy(). | 133 // Don't access current_policy_ directly, instead use SchedulerPolicy(). |
| 134 Policy current_policy_; | 134 Policy current_policy_; |
| 135 | 135 |
| 136 base::TimeTicks estimated_next_frame_begin_; | 136 base::TimeTicks estimated_next_frame_begin_; |
| 137 | 137 |
| 138 // The incoming_signals_lock_ mutex protects access to last_input_time_ | 138 // The incoming_signals_lock_ mutex protects access to last_input_time_, |
| 139 // and write access to policy_may_need_update_. | 139 // mouse_down_ and write access to policy_may_need_update_. |
| 140 base::Lock incoming_signals_lock_; | 140 base::Lock incoming_signals_lock_; |
| 141 base::TimeTicks last_input_time_; | 141 base::TimeTicks last_input_time_; |
| 142 bool mouse_down_; | |
|
Sami
2015/02/05 15:27:28
This doesn't seem to be actually protected by the
alex clarke (OOO till 29th)
2015/02/05 17:47:16
Acknowledged.
| |
| 142 PollableNeedsUpdateFlag policy_may_need_update_; | 143 PollableNeedsUpdateFlag policy_may_need_update_; |
| 143 | 144 |
| 144 scoped_refptr<cc::TestNowSource> time_source_; | 145 scoped_refptr<cc::TestNowSource> time_source_; |
| 145 | 146 |
| 146 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; | 147 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; |
| 147 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; | 148 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; |
| 148 | 149 |
| 149 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); | 150 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); |
| 150 }; | 151 }; |
| 151 | 152 |
| 152 } // namespace content | 153 } // namespace content |
| 153 | 154 |
| 154 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ | 155 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ |
| OLD | NEW |