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

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

Issue 2273193002: Make compositor_frame.h NOT include base/trace_event/trace_event.h (Closed)
Patch Set: Rebase again + presubmit fix Created 4 years, 3 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/OWNERS ('k') | ui/events/keycodes/platform_key_map_win.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 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 #ifndef UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_ 5 #ifndef UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_
6 #define UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_ 6 #define UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_
7 7
8 #include "base/pickle.h"
8 #include "ui/events/ipc/events_ipc_export.h" 9 #include "ui/events/ipc/events_ipc_export.h"
9 #include "ui/events/latency_info.h" 10 #include "ui/events/latency_info.h"
10 11
11 namespace IPC { 12 namespace IPC {
12 template <> 13 template <>
13 struct EVENTS_IPC_EXPORT ParamTraits<ui::LatencyInfo> { 14 struct EVENTS_IPC_EXPORT ParamTraits<ui::LatencyInfo> {
14 typedef ui::LatencyInfo param_type; 15 typedef ui::LatencyInfo param_type;
15 static void GetSize(base::PickleSizer* s, const param_type& p); 16 static void GetSize(base::PickleSizer* s, const param_type& p);
16 static void Write(base::Pickle* m, const param_type& p); 17 static void Write(base::Pickle* m, const param_type& p);
17 static bool Read(const base::Pickle* m, 18 static bool Read(const base::Pickle* m,
18 base::PickleIterator* iter, 19 base::PickleIterator* iter,
19 param_type* p); 20 param_type* p);
20 static void Log(const param_type& p, std::string* l); 21 static void Log(const param_type& p, std::string* l);
21 }; 22 };
22 } // namespace IPC 23 } // namespace IPC
23 24
24 #endif // UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_ 25 #endif // UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « ui/events/ipc/OWNERS ('k') | ui/events/keycodes/platform_key_map_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698