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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 UI_LATENCY_LATENCY_INFO_H_ 5 #ifndef UI_LATENCY_LATENCY_INFO_H_
6 #define UI_LATENCY_LATENCY_INFO_H_ 6 #define UI_LATENCY_LATENCY_INFO_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 // Stores the type of the first source event. 256 // Stores the type of the first source event.
257 SourceEventType source_event_type_; 257 SourceEventType source_event_type_;
258 258
259 #if !defined(OS_IOS) 259 #if !defined(OS_IOS)
260 friend struct IPC::ParamTraits<ui::LatencyInfo>; 260 friend struct IPC::ParamTraits<ui::LatencyInfo>;
261 friend struct mojo::StructTraits<ui::mojom::LatencyInfoDataView, 261 friend struct mojo::StructTraits<ui::mojom::LatencyInfoDataView,
262 ui::LatencyInfo>; 262 ui::LatencyInfo>;
263 #endif 263 #endif
264 }; 264 };
265 265
266 // This is declared here for use in gtest-based unit tests, but is defined in
267 // //ui/latency:test_support target.
268 // Without this the default PrintTo template in gtest tries to pass LatencyInfo
269 // by value, which leads to an alignment compile error on Windows.
270 void PrintTo(const LatencyInfo& latency, ::std::ostream* os);
271
266 } // namespace ui 272 } // namespace ui
267 273
268 #endif // UI_LATENCY_LATENCY_INFO_H_ 274 #endif // UI_LATENCY_LATENCY_INFO_H_
OLDNEW
« 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