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

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

Issue 2771053003: WIP: Plumbing input event latency reporting through Mus GPU.
Patch Set: NON_EXPORTED_BASE 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/latency_tracker.cc ('k') | ui/latency/mojo/latency_info_struct_traits.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 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 27 matching lines...) Expand all
38 INPUT_EVENT_LATENCY_FORWARD_SCROLL_UPDATE_TO_MAIN_COMPONENT, 38 INPUT_EVENT_LATENCY_FORWARD_SCROLL_UPDATE_TO_MAIN_COMPONENT,
39 // Timestamp when the event's ack is received by the RWH. 39 // Timestamp when the event's ack is received by the RWH.
40 INPUT_EVENT_LATENCY_ACK_RWH_COMPONENT, 40 INPUT_EVENT_LATENCY_ACK_RWH_COMPONENT,
41 // Frame number when a window snapshot was requested. The snapshot 41 // Frame number when a window snapshot was requested. The snapshot
42 // is taken when the rendering results actually reach the screen. 42 // is taken when the rendering results actually reach the screen.
43 WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT, 43 WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT,
44 // Timestamp when a tab is requested to be shown. 44 // Timestamp when a tab is requested to be shown.
45 TAB_SHOW_COMPONENT, 45 TAB_SHOW_COMPONENT,
46 // Timestamp when the frame is swapped in renderer. 46 // Timestamp when the frame is swapped in renderer.
47 INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT, 47 INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT,
48 // Timestamp of when the browser process receives a buffer swap notification 48 // Timestamp of when the display compositor receives a compositor frame.
49 // from the renderer. 49 // Display compositor can be either in the browser process or in Mus.
50 INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT, 50 DISPLAY_COMPOSITOR_RECEIVED_FRAME_COMPONENT,
51 // Timestamp of when the gpu service began swap buffers, unlike 51 // Timestamp of when the gpu service began swap buffers, unlike
52 // INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT which measures after. 52 // INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT which measures after.
53 INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT, 53 INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT,
54 // Timestamp of when the gesture scroll update is generated from a mouse wheel 54 // Timestamp of when the gesture scroll update is generated from a mouse wheel
55 // event. 55 // event.
56 INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL, 56 INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL,
57 // ---------------------------TERMINAL COMPONENT----------------------------- 57 // ---------------------------TERMINAL COMPONENT-----------------------------
58 // TERMINAL COMPONENT is when we show the latency end in chrome://tracing. 58 // TERMINAL COMPONENT is when we show the latency end in chrome://tracing.
59 // Timestamp when the event is acked from renderer when it does not 59 // Timestamp when the event is acked from renderer when it does not
60 // cause any rendering to be scheduled. 60 // cause any rendering to be scheduled.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 // See ui/latency/latency_info.h 103 // See ui/latency/latency_info.h
104 struct LatencyInfo { 104 struct LatencyInfo {
105 string trace_name; 105 string trace_name;
106 array<LatencyComponentPair> latency_components; 106 array<LatencyComponentPair> latency_components;
107 array<gfx.mojom.PointF> input_coordinates; 107 array<gfx.mojom.PointF> input_coordinates;
108 int64 trace_id; 108 int64 trace_id;
109 bool coalesced; 109 bool coalesced;
110 bool terminated; 110 bool terminated;
111 }; 111 };
OLDNEW
« no previous file with comments | « ui/latency/latency_tracker.cc ('k') | ui/latency/mojo/latency_info_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698