Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(660)

Unified Diff: ui/latency/mojo/latency_info.mojom

Issue 2847553003: Adding source_event_type to LatencyInfo mojom (Closed)
Patch Set: Updating unit test Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/latency/mojo/latency_info_struct_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/latency/mojo/latency_info.mojom
diff --git a/ui/latency/mojo/latency_info.mojom b/ui/latency/mojo/latency_info.mojom
index 5b40d32960058498313097ef8c9b2c45dff06a63..0b985e2ff003366b973e500aeb5e87438db6ad45 100644
--- a/ui/latency/mojo/latency_info.mojom
+++ b/ui/latency/mojo/latency_info.mojom
@@ -75,6 +75,14 @@ enum LatencyComponentType {
INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT,
};
+enum SourceEventType {
+ UNKNOWN,
+ WHEEL,
+ TOUCH,
+ OTHER,
+ SOURCE_EVENT_TYPE_LAST = OTHER,
tdresser 2017/04/27 14:39:27 Is there some assertion we can add to reduce the r
mfomitchev 2017/04/27 22:06:28 What if we add an assert for ui::mojom::LATENCY_CO
Fady Samuel 2017/04/27 22:49:25 We deal with this problem in cc via SetAll/SetNew
+};
+
struct LatencyComponentId {
LatencyComponentType type;
int64 id;
@@ -107,4 +115,5 @@ struct LatencyInfo {
int64 trace_id;
bool coalesced;
bool terminated;
+ SourceEventType source_event_type;
};
« no previous file with comments | « no previous file | ui/latency/mojo/latency_info_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698