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

Unified 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: comments from reveman@ 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698