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

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

Issue 1263323004: Add NativePixmapHandle type & interface for exporting them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unnecesary #include and DCHECK msgs 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // Singly or multiply-included shared traits file depending upon circumstances. 5 // Singly or multiply-included shared traits file depending upon circumstances.
6 // This allows the use of IPC serialization macros in more than one IPC message 6 // This allows the use of IPC serialization macros in more than one IPC message
7 // file. 7 // file.
8 #ifndef UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_ 8 #ifndef UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_
9 #define UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_ 9 #define UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_
10 10
11 #include "ui/gfx/buffer_types.h" 11 #include "ui/gfx/buffer_types.h"
12 #include "ui/gfx/ipc/gfx_ipc_export.h" 12 #include "ui/gfx/ipc/gfx_ipc_export.h"
13 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
14 14
15 #if defined(USE_OZONE)
16 #include "ui/gfx/native_pixmap_handle_ozone.h"
17 #endif
18
15 #undef IPC_MESSAGE_EXPORT 19 #undef IPC_MESSAGE_EXPORT
16 #define IPC_MESSAGE_EXPORT GFX_IPC_EXPORT 20 #define IPC_MESSAGE_EXPORT GFX_IPC_EXPORT
17 21
18 IPC_ENUM_TRAITS_MAX_VALUE(gfx::BufferFormat, gfx::BufferFormat::LAST) 22 IPC_ENUM_TRAITS_MAX_VALUE(gfx::BufferFormat, gfx::BufferFormat::LAST)
19 23
20 IPC_ENUM_TRAITS_MAX_VALUE(gfx::BufferUsage, gfx::BufferUsage::LAST) 24 IPC_ENUM_TRAITS_MAX_VALUE(gfx::BufferUsage, gfx::BufferUsage::LAST)
21 25
26 #if defined(USE_OZONE)
27 IPC_STRUCT_TRAITS_BEGIN(gfx::NativePixmapHandle)
28 IPC_STRUCT_TRAITS_MEMBER(fd)
29 IPC_STRUCT_TRAITS_MEMBER(stride)
30 IPC_STRUCT_TRAITS_END()
31 #endif
32
22 #undef IPC_MESSAGE_EXPORT 33 #undef IPC_MESSAGE_EXPORT
23 #define IPC_MESSAGE_EXPORT 34 #define IPC_MESSAGE_EXPORT
24 35
25 #endif // UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_ 36 #endif // UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698