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

Side by Side Diff: ui/events/ipc/latency_info_param_traits.cc

Issue 2048673002: Revert of Replace ui::LatencyInfo::InputCoordinate with gfx::PointF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/events/ipc/BUILD.gn ('k') | ui/events/ipc/latency_info_param_traits_macros.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ipc/latency_info_param_traits_macros.h" 5 #include "ui/events/ipc/latency_info_param_traits_macros.h"
6 6
7 #include "ui/gfx/ipc/geometry/gfx_param_traits.h"
8
9 // Generate param traits size methods. 7 // Generate param traits size methods.
10 #include "ipc/param_traits_size_macros.h" 8 #include "ipc/param_traits_size_macros.h"
11 namespace IPC { 9 namespace IPC {
12 #undef UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_MACROS_H_ 10 #undef UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_MACROS_H_
13 #include "ui/events/ipc/latency_info_param_traits_macros.h" 11 #include "ui/events/ipc/latency_info_param_traits_macros.h"
14 } 12 }
15 13
16 // Generate param traits write methods. 14 // Generate param traits write methods.
17 #include "ipc/param_traits_write_macros.h" 15 #include "ipc/param_traits_write_macros.h"
18 namespace IPC { 16 namespace IPC {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 61 }
64 62
65 bool ParamTraits<ui::LatencyInfo>::Read(const base::Pickle* m, 63 bool ParamTraits<ui::LatencyInfo>::Read(const base::Pickle* m,
66 base::PickleIterator* iter, 64 base::PickleIterator* iter,
67 param_type* p) { 65 param_type* p) {
68 if (!ReadParam(m, iter, &p->trace_name_)) 66 if (!ReadParam(m, iter, &p->trace_name_))
69 return false; 67 return false;
70 if (!ReadParam(m, iter, &p->latency_components_)) 68 if (!ReadParam(m, iter, &p->latency_components_))
71 return false; 69 return false;
72 70
73 gfx::PointF input_coordinates; 71 ui::LatencyInfo::InputCoordinate input_coordinates;
74 uint32_t input_coordinates_size; 72 uint32_t input_coordinates_size;
75 if (!ReadParam(m, iter, &input_coordinates_size)) 73 if (!ReadParam(m, iter, &input_coordinates_size))
76 return false; 74 return false;
77 for (size_t i = 0; i < input_coordinates_size; i++) { 75 for (size_t i = 0; i < input_coordinates_size; i++) {
78 if (!ReadParam(m, iter, &input_coordinates)) 76 if (!ReadParam(m, iter, &input_coordinates))
79 return false; 77 return false;
80 if (!p->AddInputCoordinate(input_coordinates)) 78 if (!p->AddInputCoordinate(input_coordinates))
81 return false; 79 return false;
82 } 80 }
83 81
(...skipping 16 matching lines...) Expand all
100 for (size_t i = 0; i < p.input_coordinates_size_; i++) { 98 for (size_t i = 0; i < p.input_coordinates_size_; i++) {
101 LogParam(p.input_coordinates_[i], l); 99 LogParam(p.input_coordinates_[i], l);
102 l->append(" "); 100 l->append(" ");
103 } 101 }
104 LogParam(p.trace_id_, l); 102 LogParam(p.trace_id_, l);
105 l->append(" "); 103 l->append(" ");
106 LogParam(p.terminated_, l); 104 LogParam(p.terminated_, l);
107 } 105 }
108 106
109 } // namespace IPC 107 } // namespace IPC
OLDNEW
« no previous file with comments | « ui/events/ipc/BUILD.gn ('k') | ui/events/ipc/latency_info_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698