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

Unified Diff: ui/gfx/buffer_types.h

Issue 1263323004: Add NativePixmapHandle type & interface for exporting them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/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_

Powered by Google App Engine
This is Rietveld 408576698