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

Unified Diff: ui/latency/latency_info.h

Issue 2806163004: Plumbing input event latency reporting through Mus GPU. (Closed)
Patch Set: Inline LatencyTracker in DIsplayOutputService. 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 | « ui/latency/BUILD.gn ('k') | ui/latency/latency_info_test_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/latency/latency_info.h
diff --git a/ui/latency/latency_info.h b/ui/latency/latency_info.h
index b358fbaa69a658cd4e8b71519ed305c16e1c8519..600f8745cd20e61cd800707c3a89d9a17b6e9e08 100644
--- a/ui/latency/latency_info.h
+++ b/ui/latency/latency_info.h
@@ -263,6 +263,12 @@ class LatencyInfo {
#endif
};
+// This is declared here for use in gtest-based unit tests, but is defined in
+// //ui/latency:test_support target.
+// Without this the default PrintTo template in gtest tries to pass LatencyInfo
+// by value, which leads to an alignment compile error on Windows.
+void PrintTo(const LatencyInfo& latency, ::std::ostream* os);
+
} // namespace ui
#endif // UI_LATENCY_LATENCY_INFO_H_
« no previous file with comments | « ui/latency/BUILD.gn ('k') | ui/latency/latency_info_test_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698