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

Unified Diff: chrome/plugin/command_buffer_stub.cc

Issue 555020: Redesigned CommandBuffer and NPDevice3D interfaces (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 months 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
« no previous file with comments | « chrome/plugin/command_buffer_stub.h ('k') | chrome/renderer/command_buffer_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/plugin/command_buffer_stub.cc
===================================================================
--- chrome/plugin/command_buffer_stub.cc (revision 37414)
+++ chrome/plugin/command_buffer_stub.cc (working copy)
@@ -69,18 +69,15 @@
base::CloseProcessHandle(peer_handle);
}
-void CommandBufferStub::OnSyncOffsets(int32 put_offset, int32* get_offset) {
- *get_offset = command_buffer_->SyncOffsets(put_offset);
+void CommandBufferStub::OnGetState(gpu::CommandBuffer::State* state) {
+ *state = command_buffer_->GetState();
}
-void CommandBufferStub::OnGetGetOffset(int32* get_offset) {
- *get_offset = command_buffer_->GetGetOffset();
+void CommandBufferStub::OnFlush(int32 put_offset,
+ gpu::CommandBuffer::State* state) {
+ *state = command_buffer_->Flush(put_offset);
}
-void CommandBufferStub::OnGetPutOffset(int32* put_offset) {
- *put_offset = command_buffer_->GetPutOffset();
-}
-
void CommandBufferStub::OnCreateTransferBuffer(int32 size, int32* id) {
*id = command_buffer_->CreateTransferBuffer(size);
}
@@ -111,33 +108,17 @@
base::CloseProcessHandle(peer_handle);
}
-void CommandBufferStub::OnGetToken(int32* token) {
- *token = command_buffer_->GetToken();
-}
-
-void CommandBufferStub::OnResetParseError(int32* parse_error) {
- *parse_error = command_buffer_->ResetParseError();
-}
-
-void CommandBufferStub::OnGetErrorStatus(bool* error_status) {
- *error_status = command_buffer_->GetErrorStatus();
-}
-
void CommandBufferStub::OnMessageReceived(const IPC::Message& msg) {
IPC_BEGIN_MESSAGE_MAP(CommandBufferStub, msg)
IPC_MESSAGE_HANDLER(CommandBufferMsg_Initialize, OnInitialize);
- IPC_MESSAGE_HANDLER(CommandBufferMsg_SyncOffsets, OnSyncOffsets);
- IPC_MESSAGE_HANDLER(CommandBufferMsg_GetGetOffset, OnGetGetOffset);
- IPC_MESSAGE_HANDLER(CommandBufferMsg_GetPutOffset, OnGetPutOffset);
+ IPC_MESSAGE_HANDLER(CommandBufferMsg_GetState, OnGetState);
+ IPC_MESSAGE_HANDLER(CommandBufferMsg_Flush, OnFlush);
IPC_MESSAGE_HANDLER(CommandBufferMsg_CreateTransferBuffer,
OnCreateTransferBuffer);
IPC_MESSAGE_HANDLER(CommandBufferMsg_DestroyTransferBuffer,
OnDestroyTransferBuffer);
IPC_MESSAGE_HANDLER(CommandBufferMsg_GetTransferBuffer,
OnGetTransferBuffer);
- IPC_MESSAGE_HANDLER(CommandBufferMsg_GetToken, OnGetToken);
- IPC_MESSAGE_HANDLER(CommandBufferMsg_ResetParseError, OnResetParseError);
- IPC_MESSAGE_HANDLER(CommandBufferMsg_GetErrorStatus, OnGetErrorStatus);
IPC_MESSAGE_UNHANDLED_ERROR()
IPC_END_MESSAGE_MAP()
}
« no previous file with comments | « chrome/plugin/command_buffer_stub.h ('k') | chrome/renderer/command_buffer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698