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

Unified Diff: content/common/gpu/gpu_messages.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: content/common/gpu/gpu_messages.h
diff --git a/content/common/gpu/gpu_messages.h b/content/common/gpu/gpu_messages.h
index 997a6e8f70545afddd0dec83f62ee741b4b7934f..28bec041bef953d592302aa279e6a21c6bebc1cb 100644
--- a/content/common/gpu/gpu_messages.h
+++ b/content/common/gpu/gpu_messages.h
@@ -43,6 +43,9 @@
#if defined(OS_ANDROID)
#include "content/common/android/surface_texture_peer.h"
+#elif defined(OS_MACOSX)
+#include "base/mac/scoped_mach_port.h"
+#include "ui/base/cocoa/remote_layer_api.h"
#endif
#undef IPC_MESSAGE_EXPORT
@@ -117,7 +120,9 @@ IPC_STRUCT_END()
#if defined(OS_MACOSX)
IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params)
IPC_STRUCT_MEMBER(int32, surface_id)
- IPC_STRUCT_MEMBER(uint64, surface_handle)
+ // Only one of ca_context_id or io_surface may be non-0.
+ IPC_STRUCT_MEMBER(CAContextID, ca_context_id)
+ IPC_STRUCT_MEMBER(base::mac::ScopedRefCountedMachSendRight, io_surface)
IPC_STRUCT_MEMBER(int32, route_id)
IPC_STRUCT_MEMBER(gfx::Size, size)
IPC_STRUCT_MEMBER(float, scale_factor)

Powered by Google App Engine
This is Rietveld 408576698