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

Side by Side Diff: ui/events/mojo/latency_info_struct_traits.h

Issue 2285433002: Use compositor_frame typemap in Blink (Closed)
Patch Set: Adapt to new change after rebase Created 4 years, 3 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/events/mojo/latency_info.typemap ('k') | ui/gfx/geometry/mojo/BUILD.gn » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_EVENTS_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_ 5 #ifndef UI_EVENTS_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_
6 #define UI_EVENTS_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_ 6 #define UI_EVENTS_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_
7 7
8 #include "ui/events/latency_info.h" 8 #include "ui/events/latency_info.h"
9 #include "ui/events/mojo/latency_info.mojom.h" 9 #include "ui/events/mojo/latency_info.mojom-shared.h"
10 #include "ui/gfx/geometry/mojo/geometry_struct_traits.h" 10 #include "ui/gfx/geometry/mojo/geometry_struct_traits.h"
11 11
12 namespace mojo { 12 namespace mojo {
13 13
14 using InputCoordinateArray = CArray<gfx::PointF>; 14 using InputCoordinateArray = CArray<gfx::PointF>;
15 15
16 template <> 16 template <>
17 struct ArrayTraits<ui::LatencyInfo::LatencyMap> { 17 struct ArrayTraits<ui::LatencyInfo::LatencyMap> {
18 using Element = ui::LatencyInfo::LatencyMap::value_type; 18 using Element = ui::LatencyInfo::LatencyMap::value_type;
19 using Iterator = ui::LatencyInfo::LatencyMap::iterator; 19 using Iterator = ui::LatencyInfo::LatencyMap::iterator;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 static InputCoordinateArray input_coordinates(const ui::LatencyInfo& info); 85 static InputCoordinateArray input_coordinates(const ui::LatencyInfo& info);
86 static int64_t trace_id(const ui::LatencyInfo& info); 86 static int64_t trace_id(const ui::LatencyInfo& info);
87 static bool coalesced(const ui::LatencyInfo& info); 87 static bool coalesced(const ui::LatencyInfo& info);
88 static bool terminated(const ui::LatencyInfo& info); 88 static bool terminated(const ui::LatencyInfo& info);
89 static bool Read(ui::mojom::LatencyInfoDataView data, ui::LatencyInfo* out); 89 static bool Read(ui::mojom::LatencyInfoDataView data, ui::LatencyInfo* out);
90 }; 90 };
91 91
92 } // namespace mojo 92 } // namespace mojo
93 93
94 #endif // UI_EVENTS_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_ 94 #endif // UI_EVENTS_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_
OLDNEW
« no previous file with comments | « ui/events/mojo/latency_info.typemap ('k') | ui/gfx/geometry/mojo/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698