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

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

Issue 2771053003: WIP: Plumbing input event latency reporting through Mus GPU.
Patch Set: Updating dependencies. Created 3 years, 9 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
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/time.mojom"; 7 import "mojo/common/time.mojom";
8 import "ui/gfx/geometry/mojo/geometry.mojom"; 8 import "ui/gfx/geometry/mojo/geometry.mojom";
9 9
10 enum LatencyComponentType { 10 enum LatencyComponentType {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 struct LatencyComponent { 83 struct LatencyComponent {
84 // Nondecreasing number that can be used to determine what events happened 84 // Nondecreasing number that can be used to determine what events happened
85 // in the component at the time this struct was sent on to the next 85 // in the component at the time this struct was sent on to the next
86 // component. 86 // component.
87 int64 sequence_number; 87 int64 sequence_number;
88 // Average time of events that happened in this component. 88 // Average time of events that happened in this component.
89 mojo.common.mojom.TimeTicks event_time; 89 mojo.common.mojom.TimeTicks event_time;
90 // Count of events that happened in this component 90 // Count of events that happened in this component
91 uint32 event_count; 91 uint32 event_count;
92 // TODO(mfomitchev): Do we really need these? We are shipping these cross-IPC
93 // with every frame and for every event for every component. Seems like a lot of
94 // waste
95 // Time of the oldest event that happened in this component.
96 mojo.common.mojom.TimeTicks first_event_time;
97 // Time of the most recent event that happened in this component.
98 mojo.common.mojom.TimeTicks last_event_time;
92 }; 99 };
93 100
94 struct LatencyComponentPair { 101 struct LatencyComponentPair {
95 LatencyComponentId key; 102 LatencyComponentId key;
96 LatencyComponent value; 103 LatencyComponent value;
97 }; 104 };
98 105
99 // See ui/events/latency_info.h 106 // See ui/events/latency_info.h
100 struct LatencyInfo { 107 struct LatencyInfo {
101 string trace_name; 108 string trace_name;
102 array<LatencyComponentPair> latency_components; 109 array<LatencyComponentPair> latency_components;
103 array<gfx.mojom.PointF> input_coordinates; 110 array<gfx.mojom.PointF> input_coordinates;
104 int64 trace_id; 111 int64 trace_id;
105 bool coalesced; 112 bool coalesced;
106 bool terminated; 113 bool terminated;
107 }; 114 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698