Index: ui/gfx/ipc/gfx_param_traits_macros.h |
diff --git a/ui/gfx/ipc/gfx_param_traits_macros.h b/ui/gfx/ipc/gfx_param_traits_macros.h |
index 70f858da663f8c1e073b9453696caf733bea54b9..cf8dec7b6e73c8773a08ccc99567289d487d1c3d 100644 |
--- a/ui/gfx/ipc/gfx_param_traits_macros.h |
+++ b/ui/gfx/ipc/gfx_param_traits_macros.h |
@@ -12,6 +12,10 @@ |
#include "ui/gfx/ipc/gfx_ipc_export.h" |
#include "ipc/ipc_message_macros.h" |
+#if defined(USE_OZONE) |
+#include "ui/gfx/native_pixmap_handle_ozone.h" |
+#endif |
+ |
#undef IPC_MESSAGE_EXPORT |
#define IPC_MESSAGE_EXPORT GFX_IPC_EXPORT |
@@ -19,6 +23,13 @@ IPC_ENUM_TRAITS_MAX_VALUE(gfx::BufferFormat, gfx::BufferFormat::LAST) |
IPC_ENUM_TRAITS_MAX_VALUE(gfx::BufferUsage, gfx::BufferUsage::LAST) |
+#if defined(USE_OZONE) |
+IPC_STRUCT_TRAITS_BEGIN(gfx::NativePixmapHandle) |
+ IPC_STRUCT_TRAITS_MEMBER(fd) |
+ IPC_STRUCT_TRAITS_MEMBER(stride) |
+IPC_STRUCT_TRAITS_END() |
+#endif |
+ |
#undef IPC_MESSAGE_EXPORT |
#define IPC_MESSAGE_EXPORT |