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

Side by Side Diff: ui/gfx/ipc/gfx_param_traits.h

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 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/gfx_ipc.gyp ('k') | ui/gfx/ipc/gfx_param_traits.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_GFX_IPC_GFX_PARAM_TRAITS_H_ 5 #ifndef UI_GFX_IPC_GFX_PARAM_TRAITS_H_
6 #define UI_GFX_IPC_GFX_PARAM_TRAITS_H_ 6 #define UI_GFX_IPC_GFX_PARAM_TRAITS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ipc/ipc_message_utils.h" 10 #include "ipc/ipc_message_utils.h"
11 #include "ipc/param_traits_macros.h"
12 #include "ui/gfx/buffer_types.h"
11 #include "ui/gfx/ipc/gfx_ipc_export.h" 13 #include "ui/gfx/ipc/gfx_ipc_export.h"
12 #include "ui/gfx/ipc/gfx_param_traits.h" 14 #include "ui/gfx/ipc/gfx_param_traits_macros.h"
13 15
14 class SkBitmap; 16 class SkBitmap;
15 17
16 namespace gfx { 18 namespace gfx {
17 class Point; 19 class Point;
18 class PointF; 20 class PointF;
19 class Range; 21 class Range;
20 class Rect; 22 class Rect;
21 class RectF; 23 class RectF;
22 class Size; 24 class Size;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 struct GFX_IPC_EXPORT ParamTraits<gfx::Range> { 109 struct GFX_IPC_EXPORT ParamTraits<gfx::Range> {
108 typedef gfx::Range param_type; 110 typedef gfx::Range param_type;
109 static void Write(Message* m, const param_type& p); 111 static void Write(Message* m, const param_type& p);
110 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); 112 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r);
111 static void Log(const param_type& p, std::string* l); 113 static void Log(const param_type& p, std::string* l);
112 }; 114 };
113 115
114 } // namespace IPC 116 } // namespace IPC
115 117
116 #endif // UI_GFX_IPC_GFX_PARAM_TRAITS_H_ 118 #endif // UI_GFX_IPC_GFX_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « ui/gfx/ipc/gfx_ipc.gyp ('k') | ui/gfx/ipc/gfx_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698