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

Unified Diff: ui/base/latency_info.h

Issue 17757002: Add UMA/Telemetry stats for touch event latency (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: move ACKED_COMPONENT && ComputeTouchLatency() to TouchEventQueue ; Merge FindLatency() with ToT Has… Created 7 years, 6 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
Index: ui/base/latency_info.h
diff --git a/ui/base/latency_info.h b/ui/base/latency_info.h
index a4725702feebfe386b037296b05a02edbed37fb3..c051bd6d0536c86145f38104500c645fe744a96e 100644
--- a/ui/base/latency_info.h
+++ b/ui/base/latency_info.h
@@ -72,7 +72,12 @@ struct UI_EXPORT LatencyInfo {
base::TimeTicks time,
uint32 event_count);
- bool HasLatencyComponent(LatencyComponentType type, int64 id) const;
+ // Returns true if the a component with |type| and |id| is found in
+ // the latency_components and the component is stored to |output| if
+ // |output| is not NULL. Returns false if no such component is found.
+ bool FindLatency(LatencyComponentType type,
+ int64 id,
+ LatencyComponent* output) const;
void Clear();

Powered by Google App Engine
This is Rietveld 408576698