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_DELAY_BASED_TIME_SOURCE_H_ | 5 #ifndef CC_SCHEDULER_DELAY_BASED_TIME_SOURCE_H_ |
6 #define CC_SCHEDULER_DELAY_BASED_TIME_SOURCE_H_ | 6 #define CC_SCHEDULER_DELAY_BASED_TIME_SOURCE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "cc/base/cc_export.h" | 12 #include "cc/base/cc_export.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 namespace debug { | 15 namespace trace_event { |
16 class TracedValue; | 16 class TracedValue; |
17 } | 17 } |
| 18 |
| 19 // TODO(ssid): remove these aliases after the tracing clients are moved to the |
| 20 // new trace_event namespace. See crbug.com/451032. ETA: March 2015 |
| 21 namespace debug { |
| 22 using ::base::trace_event::TracedValue; |
| 23 } |
18 class SingleThreadTaskRunner; | 24 class SingleThreadTaskRunner; |
19 } | 25 } // namespace base |
20 | 26 |
21 namespace cc { | 27 namespace cc { |
22 | 28 |
23 class CC_EXPORT TimeSourceClient { | 29 class CC_EXPORT TimeSourceClient { |
24 public: | 30 public: |
25 virtual void OnTimerTick() = 0; | 31 virtual void OnTimerTick() = 0; |
26 | 32 |
27 protected: | 33 protected: |
28 virtual ~TimeSourceClient() {} | 34 virtual ~TimeSourceClient() {} |
29 }; | 35 }; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 118 |
113 std::string TypeString() const override; | 119 std::string TypeString() const override; |
114 | 120 |
115 private: | 121 private: |
116 DISALLOW_COPY_AND_ASSIGN(DelayBasedTimeSourceHighRes); | 122 DISALLOW_COPY_AND_ASSIGN(DelayBasedTimeSourceHighRes); |
117 }; | 123 }; |
118 | 124 |
119 } // namespace cc | 125 } // namespace cc |
120 | 126 |
121 #endif // CC_SCHEDULER_DELAY_BASED_TIME_SOURCE_H_ | 127 #endif // CC_SCHEDULER_DELAY_BASED_TIME_SOURCE_H_ |
OLD | NEW |