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

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

Issue 2788893004: Renaming gpu swap buffer callbacks and the screenshot latency component. (Closed)
Patch Set: Updating android compositor 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_info.cc ('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 27 matching lines...) Expand all
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
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
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/latency_info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698