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

Unified Diff: ui/gfx/gpu_memory_buffer.h

Issue 1263323004: Add NativePixmapHandle type & interface for exporting them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rm some unneeded hunks 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/gpu_memory_buffer.h
diff --git a/ui/gfx/gpu_memory_buffer.h b/ui/gfx/gpu_memory_buffer.h
index 263a0ef41da40ddd140556c2ccc0d73d51a30afe..56ce36613fe0dc979c6464e4fac4773c066859c2 100644
--- a/ui/gfx/gpu_memory_buffer.h
+++ b/ui/gfx/gpu_memory_buffer.h
@@ -11,6 +11,10 @@
#include "ui/gfx/buffer_types.h"
#include "ui/gfx/gfx_export.h"
+#if defined(USE_OZONE)
+#include "ui/gfx/native_pixmap_handle_ozone.h"
+#endif
+
extern "C" typedef struct _ClientBuffer* ClientBuffer;
namespace gfx {
@@ -32,6 +36,9 @@ struct GFX_EXPORT GpuMemoryBufferHandle {
GpuMemoryBufferType type;
GpuMemoryBufferId id;
base::SharedMemoryHandle handle;
+#if defined(USE_OZONE)
+ NativePixmapHandle native_pixmap_handle;
+#endif
};
base::trace_event::MemoryAllocatorDumpGuid GFX_EXPORT

Powered by Google App Engine
This is Rietveld 408576698