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_DELAY_BASED_TIME_SOURCE_H_ | 5 #ifndef CC_DELAY_BASED_TIME_SOURCE_H_ |
6 #define CC_DELAY_BASED_TIME_SOURCE_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/base/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 class Thread; | 14 class Thread; |
15 | 15 |
16 // This timer implements a time source that achieves the specified interval | 16 // This timer implements a time source that achieves the specified interval |
17 // in face of millisecond-precision delayed callbacks and random queueing delays
. | 17 // in face of millisecond-precision delayed callbacks and random queueing delays
. |
18 class CC_EXPORT DelayBasedTimeSource : public TimeSource { | 18 class CC_EXPORT DelayBasedTimeSource : public TimeSource { |
19 public: | 19 public: |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 State m_state; | 72 State m_state; |
73 | 73 |
74 Thread* m_thread; | 74 Thread* m_thread; |
75 base::WeakPtrFactory<DelayBasedTimeSource> m_weakFactory; | 75 base::WeakPtrFactory<DelayBasedTimeSource> m_weakFactory; |
76 DISALLOW_COPY_AND_ASSIGN(DelayBasedTimeSource); | 76 DISALLOW_COPY_AND_ASSIGN(DelayBasedTimeSource); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace cc | 79 } // namespace cc |
80 | 80 |
81 #endif // CC_DELAY_BASED_TIME_SOURCE_H_ | 81 #endif // CC_DELAY_BASED_TIME_SOURCE_H_ |
OLD | NEW |