OLD | NEW |
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 27 matching lines...) Expand all Loading... |
38 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_MAIN_COMPONENT; | 38 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_MAIN_COMPONENT; |
39 case ui::INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_IMPL_COMPONENT: | 39 case ui::INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_IMPL_COMPONENT: |
40 return ui::mojom::LatencyComponentType:: | 40 return ui::mojom::LatencyComponentType:: |
41 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_IMPL_COMPONENT; | 41 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_IMPL_COMPONENT; |
42 case ui::INPUT_EVENT_LATENCY_FORWARD_SCROLL_UPDATE_TO_MAIN_COMPONENT: | 42 case ui::INPUT_EVENT_LATENCY_FORWARD_SCROLL_UPDATE_TO_MAIN_COMPONENT: |
43 return ui::mojom::LatencyComponentType:: | 43 return ui::mojom::LatencyComponentType:: |
44 INPUT_EVENT_LATENCY_FORWARD_SCROLL_UPDATE_TO_MAIN_COMPONENT; | 44 INPUT_EVENT_LATENCY_FORWARD_SCROLL_UPDATE_TO_MAIN_COMPONENT; |
45 case ui::INPUT_EVENT_LATENCY_ACK_RWH_COMPONENT: | 45 case ui::INPUT_EVENT_LATENCY_ACK_RWH_COMPONENT: |
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::WINDOW_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::INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT: |
57 return ui::mojom::LatencyComponentType:: | 57 return ui::mojom::LatencyComponentType:: |
58 INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT; | 58 INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 case ui::mojom::LatencyComponentType:: | 111 case ui::mojom::LatencyComponentType:: |
112 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_IMPL_COMPONENT: | 112 INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_IMPL_COMPONENT: |
113 return ui::INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_IMPL_COMPONENT; | 113 return ui::INPUT_EVENT_LATENCY_RENDERING_SCHEDULED_IMPL_COMPONENT; |
114 case ui::mojom::LatencyComponentType:: | 114 case ui::mojom::LatencyComponentType:: |
115 INPUT_EVENT_LATENCY_FORWARD_SCROLL_UPDATE_TO_MAIN_COMPONENT: | 115 INPUT_EVENT_LATENCY_FORWARD_SCROLL_UPDATE_TO_MAIN_COMPONENT: |
116 return ui::INPUT_EVENT_LATENCY_FORWARD_SCROLL_UPDATE_TO_MAIN_COMPONENT; | 116 return ui::INPUT_EVENT_LATENCY_FORWARD_SCROLL_UPDATE_TO_MAIN_COMPONENT; |
117 case ui::mojom::LatencyComponentType::INPUT_EVENT_LATENCY_ACK_RWH_COMPONENT: | 117 case ui::mojom::LatencyComponentType::INPUT_EVENT_LATENCY_ACK_RWH_COMPONENT: |
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::WINDOW_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 INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT: |
129 return ui::INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_COMPONENT; | 129 return ui::INPUT_EVENT_BROWSER_RECEIVED_RENDERER_SWAP_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; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |