| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 CC_SCHEDULER_FRAME_RATE_CONTROLLER_H_ | 5 #ifndef CC_SCHEDULER_FRAME_RATE_CONTROLLER_H_ |
| 6 #define CC_SCHEDULER_FRAME_RATE_CONTROLLER_H_ | 6 #define CC_SCHEDULER_FRAME_RATE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 int num_frames_pending_; | 81 int num_frames_pending_; |
| 82 int max_swaps_pending_; | 82 int max_swaps_pending_; |
| 83 base::TimeDelta interval_; | 83 base::TimeDelta interval_; |
| 84 base::TimeDelta deadline_adjustment_; | 84 base::TimeDelta deadline_adjustment_; |
| 85 scoped_refptr<TimeSource> time_source_; | 85 scoped_refptr<TimeSource> time_source_; |
| 86 scoped_ptr<FrameRateControllerTimeSourceAdapter> time_source_client_adapter_; | 86 scoped_ptr<FrameRateControllerTimeSourceAdapter> time_source_client_adapter_; |
| 87 bool active_; | 87 bool active_; |
| 88 | 88 |
| 89 // Members for unthrottled frame-rate. | 89 // Members for unthrottled frame-rate. |
| 90 bool is_time_source_throttling_; | 90 bool is_time_source_throttling_; |
| 91 bool manual_tick_pending_; |
| 91 base::SingleThreadTaskRunner* task_runner_; | 92 base::SingleThreadTaskRunner* task_runner_; |
| 92 base::WeakPtrFactory<FrameRateController> weak_factory_; | 93 base::WeakPtrFactory<FrameRateController> weak_factory_; |
| 93 | 94 |
| 94 private: | 95 private: |
| 95 DISALLOW_COPY_AND_ASSIGN(FrameRateController); | 96 DISALLOW_COPY_AND_ASSIGN(FrameRateController); |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 } // namespace cc | 99 } // namespace cc |
| 99 | 100 |
| 100 #endif // CC_SCHEDULER_FRAME_RATE_CONTROLLER_H_ | 101 #endif // CC_SCHEDULER_FRAME_RATE_CONTROLLER_H_ |
| OLD | NEW |