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

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

Issue 2771053003: WIP: Plumbing input event latency reporting through Mus GPU.
Patch Set: Plumb through SetLatencyInfo instead of exposing InProcessCommandBuffer. 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 // Time of the oldest event that happened in this component. 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.
93 mojo.common.mojom.TimeTicks first_event_time; 96 mojo.common.mojom.TimeTicks first_event_time;
94 // Time of the most recent event that happened in this component. 97 // Time of the most recent event that happened in this component.
95 mojo.common.mojom.TimeTicks last_event_time; 98 mojo.common.mojom.TimeTicks last_event_time;
96 }; 99 };
97 100
98 struct LatencyComponentPair { 101 struct LatencyComponentPair {
99 LatencyComponentId key; 102 LatencyComponentId key;
100 LatencyComponent value; 103 LatencyComponent value;
101 }; 104 };
102 105
103 // See ui/events/latency_info.h 106 // See ui/events/latency_info.h
104 struct LatencyInfo { 107 struct LatencyInfo {
105 string trace_name; 108 string trace_name;
106 array<LatencyComponentPair> latency_components; 109 array<LatencyComponentPair> latency_components;
107 array<gfx.mojom.PointF> input_coordinates; 110 array<gfx.mojom.PointF> input_coordinates;
108 int64 trace_id; 111 int64 trace_id;
109 bool coalesced; 112 bool coalesced;
110 bool terminated; 113 bool terminated;
111 }; 114 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698