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

Side by Side Diff: ui/latency/mojo/latency_info_struct_traits.cc

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/mojo/latency_info.mojom ('k') | no next file » | 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 #include "ui/latency/mojo/latency_info_struct_traits.h" 5 #include "ui/latency/mojo/latency_info_struct_traits.h"
6 6
7 #include "ipc/ipc_message_utils.h" 7 #include "ipc/ipc_message_utils.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 return ui::mojom::LatencyComponentType:: 46 return ui::mojom::LatencyComponentType::
47 INPUT_EVENT_LATENCY_ACK_RWH_COMPONENT; 47 INPUT_EVENT_LATENCY_ACK_RWH_COMPONENT;
48 case ui::BROWSER_SNAPSHOT_FRAME_NUMBER_COMPONENT: 48 case ui::BROWSER_SNAPSHOT_FRAME_NUMBER_COMPONENT:
49 return ui::mojom::LatencyComponentType:: 49 return ui::mojom::LatencyComponentType::
50 WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT; 50 WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT;
51 case ui::TAB_SHOW_COMPONENT: 51 case ui::TAB_SHOW_COMPONENT:
52 return ui::mojom::LatencyComponentType::TAB_SHOW_COMPONENT; 52 return ui::mojom::LatencyComponentType::TAB_SHOW_COMPONENT;
53 case ui::INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT: 53 case ui::INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT:
54 return ui::mojom::LatencyComponentType:: 54 return ui::mojom::LatencyComponentType::
55 INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT; 55 INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT;
56 case ui::INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT: 56 case ui::DISPLAY_COMPOSITOR_RECEIVED_FRAME_COMPONENT:
57 return ui::mojom::LatencyComponentType:: 57 return ui::mojom::LatencyComponentType::
58 INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT; 58 DISPLAY_COMPOSITOR_RECEIVED_FRAME_COMPONENT;
59 case ui::INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT: 59 case ui::INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT:
60 return ui::mojom::LatencyComponentType:: 60 return ui::mojom::LatencyComponentType::
61 INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT; 61 INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT;
62 case ui::INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL: 62 case ui::INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL:
63 return ui::mojom::LatencyComponentType:: 63 return ui::mojom::LatencyComponentType::
64 INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL; 64 INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL;
65 case ui::INPUT_EVENT_LATENCY_TERMINATED_NO_SWAP_COMPONENT: 65 case ui::INPUT_EVENT_LATENCY_TERMINATED_NO_SWAP_COMPONENT:
66 return ui::mojom::LatencyComponentType:: 66 return ui::mojom::LatencyComponentType::
67 INPUT_EVENT_LATENCY_TERMINATED_NO_SWAP_COMPONENT; 67 INPUT_EVENT_LATENCY_TERMINATED_NO_SWAP_COMPONENT;
68 case ui::INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT: 68 case ui::INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT:
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 return ui::INPUT_EVENT_LATENCY_ACK_RWH_COMPONENT; 118 return ui::INPUT_EVENT_LATENCY_ACK_RWH_COMPONENT;
119 case ui::mojom::LatencyComponentType:: 119 case ui::mojom::LatencyComponentType::
120 WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT: 120 WINDOW_SNAPSHOT_FRAME_NUMBER_COMPONENT:
121 return ui::BROWSER_SNAPSHOT_FRAME_NUMBER_COMPONENT; 121 return ui::BROWSER_SNAPSHOT_FRAME_NUMBER_COMPONENT;
122 case ui::mojom::LatencyComponentType::TAB_SHOW_COMPONENT: 122 case ui::mojom::LatencyComponentType::TAB_SHOW_COMPONENT:
123 return ui::TAB_SHOW_COMPONENT; 123 return ui::TAB_SHOW_COMPONENT;
124 case ui::mojom::LatencyComponentType:: 124 case ui::mojom::LatencyComponentType::
125 INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT: 125 INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT:
126 return ui::INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT; 126 return ui::INPUT_EVENT_LATENCY_RENDERER_SWAP_COMPONENT;
127 case ui::mojom::LatencyComponentType:: 127 case ui::mojom::LatencyComponentType::
128 INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT: 128 DISPLAY_COMPOSITOR_RECEIVED_FRAME_COMPONENT:
129 return ui::INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT; 129 return ui::DISPLAY_COMPOSITOR_RECEIVED_FRAME_COMPONENT;
130 case ui::mojom::LatencyComponentType::INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT: 130 case ui::mojom::LatencyComponentType::INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT:
131 return ui::INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT; 131 return ui::INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT;
132 case ui::mojom::LatencyComponentType:: 132 case ui::mojom::LatencyComponentType::
133 INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL: 133 INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL:
134 return ui::INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL; 134 return ui::INPUT_EVENT_LATENCY_GENERATE_SCROLL_UPDATE_FROM_MOUSE_WHEEL;
135 case ui::mojom::LatencyComponentType:: 135 case ui::mojom::LatencyComponentType::
136 INPUT_EVENT_LATENCY_TERMINATED_NO_SWAP_COMPONENT: 136 INPUT_EVENT_LATENCY_TERMINATED_NO_SWAP_COMPONENT:
137 return ui::INPUT_EVENT_LATENCY_TERMINATED_NO_SWAP_COMPONENT; 137 return ui::INPUT_EVENT_LATENCY_TERMINATED_NO_SWAP_COMPONENT;
138 case ui::mojom::LatencyComponentType:: 138 case ui::mojom::LatencyComponentType::
139 INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT: 139 INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT:
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 out->input_coordinates_size_ = 291 out->input_coordinates_size_ =
292 static_cast<uint32_t>(input_coordinate_array.size); 292 static_cast<uint32_t>(input_coordinate_array.size);
293 293
294 out->trace_id_ = data.trace_id(); 294 out->trace_id_ = data.trace_id();
295 out->coalesced_ = data.coalesced(); 295 out->coalesced_ = data.coalesced();
296 out->terminated_ = data.terminated(); 296 out->terminated_ = data.terminated();
297 return true; 297 return true;
298 } 298 }
299 299
300 } // namespace mojo 300 } // namespace mojo
OLDNEW
« no previous file with comments | « ui/latency/mojo/latency_info.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698