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

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

Issue 2783973002: Moving LatencyInfo into a separate component. (Closed)
Patch Set: Rebase again 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_struct_traits.h ('k') | ui/latency/mojo/struct_traits_unittest.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 #include "ui/events/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
11 namespace { 11 namespace {
12 12
13 ui::mojom::LatencyComponentType UILatencyComponentTypeToMojo( 13 ui::mojom::LatencyComponentType UILatencyComponentTypeToMojo(
14 ui::LatencyComponentType type) { 14 ui::LatencyComponentType type) {
15 switch (type) { 15 switch (type) {
(...skipping 275 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_struct_traits.h ('k') | ui/latency/mojo/struct_traits_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698