 Chromium Code Reviews
 Chromium Code Reviews Issue 1137453002:
  content: Pass IOSurface references using Mach IPC.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 1137453002:
  content: Pass IOSurface references using Mach IPC.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| OLD | NEW | 
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_COMMON_MAC_IO_SURFACE_MANAGER_MESSAGES_H_ | |
| 6 #define CONTENT_COMMON_MAC_IO_SURFACE_MANAGER_MESSAGES_H_ | |
| 7 | |
| 8 // Mach IPC messages used for child processes. | |
| 9 | |
| 10 // Message IDs. | |
| 11 // Note: we currently use __LINE__ to give unique IDs to messages. | |
| 12 // They're unique since all messages are defined in this file. | |
| 13 #define MACH_MESSAGE_ID() __LINE__ | |
| 14 | |
| 15 namespace content { | |
| 16 | |
| 17 // Messages sent from the child process to the browser. | |
| 18 | |
| 19 struct IOSurfaceManagerHostMsg_RegisterIOSurface { | |
| 
Robert Sesek
2015/05/15 21:45:05
Each of these messages should have the
mach_msg_h
 
reveman
2015/05/18 18:15:39
Done but gpu::Mailbox here gets ugly as it's not P
 | |
| 20 enum { ID = MACH_MESSAGE_ID() }; | |
| 21 mach_msg_port_descriptor_t io_surface_port; | |
| 22 int io_surface_id; | |
| 23 int client_id; | |
| 24 }; | |
| 25 | |
| 26 struct IOSurfaceManagerHostMsg_RegisterIOSurfaceReply { | |
| 27 enum { ID = MACH_MESSAGE_ID() }; | |
| 28 boolean_t result; | |
| 29 }; | |
| 30 | |
| 31 struct IOSurfaceManagerHostMsg_UnregisterIOSurface { | |
| 32 enum { ID = MACH_MESSAGE_ID() }; | |
| 33 int io_surface_id; | |
| 34 int client_id; | |
| 35 }; | |
| 36 | |
| 37 struct IOSurfaceManagerHostMsg_AcquireIOSurface { | |
| 38 enum { ID = MACH_MESSAGE_ID() }; | |
| 39 int io_surface_id; | |
| 40 }; | |
| 41 | |
| 42 // Messages sent from the browser to the child process. | |
| 43 | |
| 44 struct IOSurfaceManagerMsg_RegisterIOSurfaceReply { | |
| 45 boolean_t result; | |
| 46 }; | |
| 47 | |
| 48 struct IOSurfaceManagerMsg_AcquireIOSurfaceReply { | |
| 49 mach_msg_port_descriptor_t io_surface_port; | |
| 50 }; | |
| 51 | |
| 52 } // namespace content | |
| 53 | |
| 54 #endif // CONTENT_COMMON_MAC_IO_SURFACE_MANAGER_MESSAGES_H_ | |
| OLD | NEW |