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

Unified Diff: chrome/renderer/command_buffer_proxy.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/renderer/command_buffer_proxy.h ('k') | chrome/renderer/webplugin_delegate_pepper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/command_buffer_proxy.cc
===================================================================
--- chrome/renderer/command_buffer_proxy.cc (revision 37414)
+++ chrome/renderer/command_buffer_proxy.cc (working copy)
@@ -71,42 +71,25 @@
return buffer;
}
-int32 CommandBufferProxy::GetSize() {
- // Return locally cached size.
- return size_;
+gpu::CommandBuffer::State CommandBufferProxy::GetState() {
+ gpu::CommandBuffer::State state;
+ Send(new CommandBufferMsg_GetState(route_id_, &state));
+ return state;
}
-int32 CommandBufferProxy::SyncOffsets(int32 put_offset) {
- int32 get_offset;
- if (Send(new CommandBufferMsg_SyncOffsets(route_id_,
- put_offset,
- &get_offset)))
- return get_offset;
-
- return -1;
+gpu::CommandBuffer::State CommandBufferProxy::Flush(int32 put_offset) {
+ gpu::CommandBuffer::State state;
+ Send(new CommandBufferMsg_Flush(route_id_,
+ put_offset,
+ &state));
+ return state;
}
-int32 CommandBufferProxy::GetGetOffset() {
- int32 get_offset;
- if (Send(new CommandBufferMsg_GetGetOffset(route_id_, &get_offset)))
- return get_offset;
-
- return -1;
-}
-
void CommandBufferProxy::SetGetOffset(int32 get_offset) {
// Not implemented in proxy.
NOTREACHED();
}
-int32 CommandBufferProxy::GetPutOffset() {
- int put_offset;
- if (Send(new CommandBufferMsg_GetPutOffset(route_id_, &put_offset)))
- return put_offset;
-
- return -1;
-}
-
int32 CommandBufferProxy::CreateTransferBuffer(size_t size) {
int32 id;
if (Send(new CommandBufferMsg_CreateTransferBuffer(route_id_, size, &id)))
@@ -176,41 +159,13 @@
return buffer;
}
-int32 CommandBufferProxy::GetToken() {
- int32 token;
- if (Send(new CommandBufferMsg_GetToken(route_id_, &token)))
- return token;
-
- return -1;
-}
-
void CommandBufferProxy::SetToken(int32 token) {
// Not implemented in proxy.
NOTREACHED();
}
-int32 CommandBufferProxy::ResetParseError() {
- int32 parse_error;
- if (Send(new CommandBufferMsg_ResetParseError(route_id_, &parse_error)))
- return parse_error;
-
- return -1;
-}
-
-void CommandBufferProxy::SetParseError(int32 parse_error) {
+void CommandBufferProxy::SetParseError(
+ gpu::parse_error::ParseError parse_error) {
// Not implemented in proxy.
NOTREACHED();
}
-
-bool CommandBufferProxy::GetErrorStatus() {
- bool status;
- if (Send(new CommandBufferMsg_GetErrorStatus(route_id_, &status)))
- return status;
-
- return true;
-}
-
-void CommandBufferProxy::RaiseErrorStatus() {
- // Not implemented in proxy.
- NOTREACHED();
-}
« no previous file with comments | « chrome/renderer/command_buffer_proxy.h ('k') | chrome/renderer/webplugin_delegate_pepper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698