Index: ui/base/latency_info.h |
diff --git a/cc/debug/latency_info.h b/ui/base/latency_info.h |
similarity index 75% |
rename from cc/debug/latency_info.h |
rename to ui/base/latency_info.h |
index e967caf345f4f384fac33a52bbeab3e7421e952d..28c4dce818c448260c9b704293cd88b1d8ad867b 100644 |
--- a/cc/debug/latency_info.h |
+++ b/ui/base/latency_info.h |
@@ -2,27 +2,24 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CC_DEBUG_LATENCY_INFO_H_ |
-#define CC_DEBUG_LATENCY_INFO_H_ |
+#ifndef UI_BASE_LATENCY_INFO_H_ |
+#define UI_BASE_LATENCY_INFO_H_ |
#include <map> |
#include <utility> |
#include "base/basictypes.h" |
#include "base/time.h" |
-#include "cc/base/cc_export.h" |
+#include "ui/base/ui_export.h" |
-namespace cc { |
+namespace ui { |
enum LatencyComponentType { |
- kRendererMainThread, |
- kRendererImplThread, |
- kBrowserMainThread, |
- kBrowserImplThread, |
- kInputEvent, |
+ INPUT_EVENT_LATENCY_COMPONENT, |
sky
2013/05/16 15:38:32
Why do you have an enum with a single value?
jbauman
2013/05/20 16:48:22
In my next set of patches I want to extend this fo
|
}; |
-struct CC_EXPORT LatencyInfo { |
+class UI_EXPORT LatencyInfo { |
+ public: |
struct LatencyComponent { |
// Nondecreasing number that can be used to determine what events happened |
// in the component at the time this struct was sent on to the next |
@@ -50,17 +47,19 @@ struct CC_EXPORT LatencyInfo { |
void MergeWith(const LatencyInfo& other); |
- void AddLatencyNumber(LatencyComponentType component, int64 id, |
+ void AddLatencyNumber(LatencyComponentType component, |
sky
2013/05/16 15:38:32
Add descriptions.
|
+ int64 id, |
int64 component_sequence_number); |
void AddLatencyNumberWithTimestamp(LatencyComponentType component, |
- int64 id, int64 component_sequence_number, |
+ int64 id, |
+ int64 component_sequence_number, |
base::TimeTicks time, |
uint32 event_count); |
void Clear(); |
}; |
sky
2013/05/16 15:38:32
private:DISALLOW_COPY_AND_ASSIGN
jbauman
2013/05/20 16:48:22
This is stored in STL datastructures, so I can't d
|
-} // namespace cc |
+} // namespace ui |
-#endif // CC_DEBUG_LATENCY_INFO_H_ |
+#endif // UI_BASE_LATENCY_INFO_H_ |