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

Side by Side Diff: ui/events/mojo/latency_info.mojom

Issue 2048673002: Revert of Replace ui::LatencyInfo::InputCoordinate with gfx::PointF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « ui/events/mojo/BUILD.gn ('k') | ui/events/mojo/latency_info.typemap » ('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 module ui.mojom; 5 module ui.mojom;
6 6
7 import "mojo/common/common_custom_types.mojom"; 7 import "mojo/common/common_custom_types.mojom";
8 import "ui/gfx/geometry/mojo/geometry.mojom";
9 8
10 enum LatencyComponentType { 9 enum LatencyComponentType {
11 // ---------------------------BEGIN COMPONENT------------------------------- 10 // ---------------------------BEGIN COMPONENT-------------------------------
12 // BEGIN COMPONENT is when we show the latency begin in chrome://tracing. 11 // BEGIN COMPONENT is when we show the latency begin in chrome://tracing.
13 // Timestamp when the input event is sent from RenderWidgetHost to renderer. 12 // Timestamp when the input event is sent from RenderWidgetHost to renderer.
14 INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT, 13 INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT,
15 // In threaded scrolling, main thread scroll listener update is async to 14 // In threaded scrolling, main thread scroll listener update is async to
16 // scroll processing in impl thread. This is the timestamp when we consider 15 // scroll processing in impl thread. This is the timestamp when we consider
17 // the main thread scroll listener update is begun. 16 // the main thread scroll listener update is begun.
18 LATENCY_BEGIN_SCROLL_LISTENER_UPDATE_MAIN_COMPONENT, 17 LATENCY_BEGIN_SCROLL_LISTENER_UPDATE_MAIN_COMPONENT,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 mojo.common.mojom.TimeTicks event_time; 100 mojo.common.mojom.TimeTicks event_time;
102 // Count of events that happened in this component 101 // Count of events that happened in this component
103 uint32 event_count; 102 uint32 event_count;
104 }; 103 };
105 104
106 struct LatencyComponentPair { 105 struct LatencyComponentPair {
107 LatencyComponentId key; 106 LatencyComponentId key;
108 LatencyComponent value; 107 LatencyComponent value;
109 }; 108 };
110 109
110 // TODO(fsamuel): We should replace this with gfx.mojom.PointF here and in
111 // ui/events/latency_info.h.
112 struct InputCoordinate {
113 float x;
114 float y;
115 };
116
111 // See ui/events/latency_info.h 117 // See ui/events/latency_info.h
112 struct LatencyInfo { 118 struct LatencyInfo {
113 string trace_name; 119 string trace_name;
114 array<LatencyComponentPair> latency_components; 120 array<LatencyComponentPair> latency_components;
115 array<gfx.mojom.PointF> input_coordinates; 121 array<InputCoordinate> input_coordinates;
116 int64 trace_id; 122 int64 trace_id;
117 bool coalesced; 123 bool coalesced;
118 bool terminated; 124 bool terminated;
119 }; 125 };
OLDNEW
« no previous file with comments | « ui/events/mojo/BUILD.gn ('k') | ui/events/mojo/latency_info.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698