Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / mojo / services / gles2 / command_buffer.mojom
index e54a6e1..1f91362 100644 (file)
@@ -14,25 +14,20 @@ struct CommandBufferState {
   uint32 generation;
 };
 
-// TODO(piman): we need to support proper SHM handles, or refactor command
-// buffers to sit on top of mojo primitives (e.g. DataPipe, etc.).
-struct ShmHandle {
-  uint64 handle_hack;
-};
-
 interface CommandBufferSyncClient {
   DidInitialize(bool success);
   DidMakeProgress(CommandBufferState state);
 };
 
-[Peer=CommandBufferClient]
+[Client=CommandBufferClient]
 interface CommandBuffer {
   Initialize(CommandBufferSyncClient sync_client,
-                  ShmHandle shared_state);
+             handle<shared_buffer> shared_state);
   SetGetBuffer(int32 buffer);
   Flush(int32 put_offset);
   MakeProgress(int32 last_get_offset);
-  RegisterTransferBuffer(int32 id, ShmHandle transfer_buffer, uint32 size);
+  RegisterTransferBuffer(
+      int32 id, handle<shared_buffer> transfer_buffer, uint32 size);
   DestroyTransferBuffer(int32 id);
   Echo() => ();
 
@@ -43,7 +38,6 @@ interface CommandBuffer {
   // TODO(piman): sync points
 };
 
-[Peer=CommandBuffer]
 interface CommandBufferClient {
   DidDestroy();
   LostContext(int32 lost_reason);  // TODO(piman): enum
@@ -53,4 +47,3 @@ interface CommandBufferClient {
 };
 
 }
-