// 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,
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,
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.