Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / ppapi / proxy / ppb_graphics_3d_proxy.h
index 70c96e9..931b84f 100644 (file)
@@ -35,13 +35,10 @@ class Graphics3D : public PPB_Graphics3D_Shared {
 
   // Graphics3DTrusted API. These are not implemented in the proxy.
   virtual PP_Bool SetGetBuffer(int32_t shm_id) OVERRIDE;
-  virtual gpu::CommandBuffer::State GetState() OVERRIDE;
   virtual PP_Bool Flush(int32_t put_offset) OVERRIDE;
-  virtual int32_t CreateTransferBuffer(uint32_t size) OVERRIDE;
+  virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size,
+                                                          int32* id) OVERRIDE;
   virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE;
-  virtual PP_Bool GetTransferBuffer(int32_t id,
-                                    int* shm_handle,
-                                    uint32_t* shm_size) OVERRIDE;
   virtual gpu::CommandBuffer::State WaitForTokenInRange(int32_t start,
                                                         int32_t end) OVERRIDE;
   virtual gpu::CommandBuffer::State WaitForGetOffsetInRange(int32_t start,
@@ -82,9 +79,6 @@ class PPB_Graphics3D_Proxy : public InterfaceProxy {
                    HostResource* result);
   void OnMsgSetGetBuffer(const HostResource& context,
                          int32 id);
-  void OnMsgGetState(const HostResource& context,
-                     gpu::CommandBuffer::State* state,
-                     bool* success);
   void OnMsgWaitForTokenInRange(const HostResource& context,
                                 int32 start,
                                 int32 end,
@@ -96,14 +90,13 @@ class PPB_Graphics3D_Proxy : public InterfaceProxy {
                                     gpu::CommandBuffer::State* state,
                                     bool* success);
   void OnMsgAsyncFlush(const HostResource& context, int32 put_offset);
-  void OnMsgCreateTransferBuffer(const HostResource& context,
-                                 uint32 size,
-                                 int32* id);
+  void OnMsgCreateTransferBuffer(
+      const HostResource& context,
+      uint32 size,
+      int32* id,
+      ppapi::proxy::SerializedHandle* transfer_buffer);
   void OnMsgDestroyTransferBuffer(const HostResource& context,
                                   int32 id);
-  void OnMsgGetTransferBuffer(const HostResource& context,
-                              int32 id,
-                              ppapi::proxy::SerializedHandle* transfer_buffer);
   void OnMsgSwapBuffers(const HostResource& context);
   void OnMsgInsertSyncPoint(const HostResource& context, uint32* sync_point);
   // Renderer->plugin message handlers.