Index: ui/gfx/buffer_types.h |
diff --git a/ui/gfx/buffer_types.h b/ui/gfx/buffer_types.h |
index b7c787abab9f847cdd13341d6ddfe163febd3da4..30a1b08d1a1120b80a41d63c209557539fc12822 100644 |
--- a/ui/gfx/buffer_types.h |
+++ b/ui/gfx/buffer_types.h |
@@ -5,6 +5,10 @@ |
#ifndef UI_GFX_BUFFER_TYPES_H_ |
#define UI_GFX_BUFFER_TYPES_H_ |
+#if defined(USE_OZONE) |
+#include "base/file_descriptor_posix.h" |
+#endif |
+ |
namespace gfx { |
// The format needs to be taken into account when mapping a buffer into the |
@@ -32,6 +36,16 @@ enum class BufferFormat { |
// contents. |
enum class BufferUsage { MAP, PERSISTENT_MAP, SCANOUT, LAST = SCANOUT }; |
+#if defined(USE_OZONE) |
+struct NativePixmapHandle { |
reveman
2015/08/05 04:18:00
Can you move this out of this otherwise platform i
spang
2015/08/05 13:26:15
If it is embedded in GpuMemoryBufferHandle, it can
reveman
2015/08/05 13:58:52
Acknowledged.
|
+ // A file descriptor for the underlying memory object (usually dmabuf). |
+ base::FileDescriptor fd; |
+ |
+ // The stride to used when accessing the buffer via a memory mapping. |
+ int32_t stride = 0; |
+}; |
+#endif |
+ |
} // namespace gfx |
#endif // UI_GFX_BUFFER_TYPES_H_ |