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 CCDelayBasedTimeSource_h | 5 #ifndef CC_DELAY_BASED_TIME_SOURCE_H_ |
6 #define CCDelayBasedTimeSource_h | 6 #define CC_DELAY_BASED_TIME_SOURCE_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "cc/cc_export.h" | 9 #include "cc/cc_export.h" |
10 #include "cc/time_source.h" | 10 #include "cc/time_source.h" |
11 | 11 |
12 namespace cc { | 12 namespace cc { |
13 | 13 |
14 // This timer implements a time source that achieves the specified interval | 14 // This timer implements a time source that achieves the specified interval |
15 // in face of millisecond-precision delayed callbacks and random queueing delays
. | 15 // in face of millisecond-precision delayed callbacks and random queueing delays
. |
16 class CC_EXPORT DelayBasedTimeSource : public TimeSource { | 16 class CC_EXPORT DelayBasedTimeSource : public TimeSource { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 State m_state; | 70 State m_state; |
71 | 71 |
72 Thread* m_thread; | 72 Thread* m_thread; |
73 base::WeakPtrFactory<DelayBasedTimeSource> m_weakFactory; | 73 base::WeakPtrFactory<DelayBasedTimeSource> m_weakFactory; |
74 DISALLOW_COPY_AND_ASSIGN(DelayBasedTimeSource); | 74 DISALLOW_COPY_AND_ASSIGN(DelayBasedTimeSource); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace cc | 77 } // namespace cc |
78 | 78 |
79 #endif // CCDelayBasedTimeSource_h | 79 #endif // CC_DELAY_BASED_TIME_SOURCE_H_ |
OLD | NEW |