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

Unified Diff: ui/gfx/gpu_memory_buffer.h

Issue 1532813002: Replace IOSurfaceManager by directly passing IOSurface Mach ports over Chrome IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows compile Created 5 years 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 47d277ea64dced60192ee7dc3414118fc0f75384..837caf69a8722479eba5a8e556a09432f75ddd84 100644
--- a/ui/gfx/gpu_memory_buffer.h
+++ b/ui/gfx/gpu_memory_buffer.h
@@ -15,6 +15,8 @@
#if defined(USE_OZONE)
#include "ui/gfx/native_pixmap_handle_ozone.h"
+#elif defined(OS_MACOSX)
+#include "base/mac/scoped_mach_port.h"
#endif
extern "C" typedef struct _ClientBuffer* ClientBuffer;
@@ -34,6 +36,7 @@ using GpuMemoryBufferId = GenericSharedMemoryId;
struct GFX_EXPORT GpuMemoryBufferHandle {
GpuMemoryBufferHandle();
+ ~GpuMemoryBufferHandle();
bool is_null() const { return type == EMPTY_BUFFER; }
GpuMemoryBufferType type;
GpuMemoryBufferId id;
@@ -42,6 +45,8 @@ struct GFX_EXPORT GpuMemoryBufferHandle {
int32_t stride;
#if defined(USE_OZONE)
NativePixmapHandle native_pixmap_handle;
+#elif defined(OS_MACOSX)
+ base::mac::ScopedRefCountedMachSendRight mach_port;
ccameron 2015/12/21 19:30:14 The existence of this port will result in the IOSu
#endif
};
« ipc/ipc_message_utils.cc ('K') | « ui/gfx/gfx.gyp ('k') | ui/gfx/gpu_memory_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698