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

Side by Side Diff: ui/gfx/ipc/geometry/gfx_param_traits.cc

Issue 2150013003: Add IPC support for gfx::ColorSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl try Created 4 years, 5 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/gfx/ipc/color/gfx_param_traits_macros.h ('k') | ui/gfx/ipc/gfx_ipc.gyp » ('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/gfx/ipc/geometry/gfx_param_traits.h" 5 #include "ui/gfx/ipc/geometry/gfx_param_traits.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "ui/gfx/geometry/point3_f.h" 12 #include "ui/gfx/geometry/point3_f.h"
13 #include "ui/gfx/geometry/rect.h" 13 #include "ui/gfx/geometry/rect.h"
14 #include "ui/gfx/geometry/rect_f.h" 14 #include "ui/gfx/geometry/rect_f.h"
15 #include "ui/gfx/geometry/scroll_offset.h" 15 #include "ui/gfx/geometry/scroll_offset.h"
16 16
17 #if defined(OS_MACOSX)
18 #include "ipc/mach_port_mac.h"
19 #endif
20
21 namespace IPC { 17 namespace IPC {
22 18
23 void ParamTraits<gfx::Point>::GetSize(base::PickleSizer* s, 19 void ParamTraits<gfx::Point>::GetSize(base::PickleSizer* s,
24 const gfx::Point& p) { 20 const gfx::Point& p) {
25 GetParamSize(s, p.x()); 21 GetParamSize(s, p.x());
26 GetParamSize(s, p.y()); 22 GetParamSize(s, p.y());
27 } 23 }
28 24
29 void ParamTraits<gfx::Point>::Write(base::Pickle* m, const gfx::Point& p) { 25 void ParamTraits<gfx::Point>::Write(base::Pickle* m, const gfx::Point& p) {
30 WriteParam(m, p.x()); 26 WriteParam(m, p.x());
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 290
295 void ParamTraits<gfx::ScrollOffset>::Log(const param_type& p, std::string* l) { 291 void ParamTraits<gfx::ScrollOffset>::Log(const param_type& p, std::string* l) {
296 l->append("("); 292 l->append("(");
297 LogParam(p.x(), l); 293 LogParam(p.x(), l);
298 l->append(", "); 294 l->append(", ");
299 LogParam(p.y(), l); 295 LogParam(p.y(), l);
300 l->append(")"); 296 l->append(")");
301 } 297 }
302 298
303 } // namespace IPC 299 } // namespace IPC
OLDNEW
« no previous file with comments | « ui/gfx/ipc/color/gfx_param_traits_macros.h ('k') | ui/gfx/ipc/gfx_ipc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698