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_TIME_SOURCE_H_ | 5 #ifndef CC_SCHEDULER_TIME_SOURCE_H_ |
6 #define CC_SCHEDULER_TIME_SOURCE_H_ | 6 #define CC_SCHEDULER_TIME_SOURCE_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
11 | 11 |
12 namespace cc { | 12 namespace cc { |
13 | 13 |
14 class TimeSourceClient { | 14 class CC_EXPORT TimeSourceClient { |
15 public: | 15 public: |
16 virtual void OnTimerTick() = 0; | 16 virtual void OnTimerTick() = 0; |
17 | 17 |
18 protected: | 18 protected: |
19 virtual ~TimeSourceClient() {} | 19 virtual ~TimeSourceClient() {} |
20 }; | 20 }; |
21 | 21 |
22 // An generic interface for getting a reliably-ticking timesource of | 22 // An generic interface for getting a reliably-ticking timesource of |
23 // a specified rate. | 23 // a specified rate. |
24 // | 24 // |
(...skipping 17 matching lines...) Expand all Loading... |
42 protected: | 42 protected: |
43 virtual ~TimeSource() {} | 43 virtual ~TimeSource() {} |
44 | 44 |
45 private: | 45 private: |
46 friend class base::RefCounted<TimeSource>; | 46 friend class base::RefCounted<TimeSource>; |
47 }; | 47 }; |
48 | 48 |
49 } // namespace cc | 49 } // namespace cc |
50 | 50 |
51 #endif // CC_SCHEDULER_TIME_SOURCE_H_ | 51 #endif // CC_SCHEDULER_TIME_SOURCE_H_ |
OLD | NEW |