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

Side by Side Diff: chrome/renderer/command_buffer_proxy.cc

Issue 527009: Removing the dependency of command-buffer client on base/task.h. This file in... (Closed) Base URL: svn://svn.chromium.org/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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/command_buffer_proxy.h ('k') | gpu/command_buffer/common/command_buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/logging.h" 5 #include "base/logging.h"
6 #include "base/process_util.h" 6 #include "base/process_util.h"
7 #include "chrome/common/command_buffer_messages.h" 7 #include "chrome/common/command_buffer_messages.h"
8 #include "chrome/common/plugin_messages.h" 8 #include "chrome/common/plugin_messages.h"
9 #include "chrome/renderer/command_buffer_proxy.h" 9 #include "chrome/renderer/command_buffer_proxy.h"
10 #include "chrome/renderer/plugin_channel_host.h" 10 #include "chrome/renderer/plugin_channel_host.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 100 }
101 101
102 int32 CommandBufferProxy::GetPutOffset() { 102 int32 CommandBufferProxy::GetPutOffset() {
103 int put_offset; 103 int put_offset;
104 if (Send(new CommandBufferMsg_GetPutOffset(route_id_, &put_offset))) 104 if (Send(new CommandBufferMsg_GetPutOffset(route_id_, &put_offset)))
105 return put_offset; 105 return put_offset;
106 106
107 return -1; 107 return -1;
108 } 108 }
109 109
110 void CommandBufferProxy::SetPutOffsetChangeCallback(Callback0::Type* callback) {
111 // Not implemented in proxy.
112 NOTREACHED();
113 }
114
115 int32 CommandBufferProxy::CreateTransferBuffer(size_t size) { 110 int32 CommandBufferProxy::CreateTransferBuffer(size_t size) {
116 int32 id; 111 int32 id;
117 if (Send(new CommandBufferMsg_CreateTransferBuffer(route_id_, size, &id))) 112 if (Send(new CommandBufferMsg_CreateTransferBuffer(route_id_, size, &id)))
118 return id; 113 return id;
119 114
120 return -1; 115 return -1;
121 } 116 }
122 117
123 void CommandBufferProxy::DestroyTransferBuffer(int32 id) { 118 void CommandBufferProxy::DestroyTransferBuffer(int32 id) {
124 // Remove the transfer buffer from the client side4 cache. 119 // Remove the transfer buffer from the client side4 cache.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 if (Send(new CommandBufferMsg_GetErrorStatus(route_id_, &status))) 207 if (Send(new CommandBufferMsg_GetErrorStatus(route_id_, &status)))
213 return status; 208 return status;
214 209
215 return true; 210 return true;
216 } 211 }
217 212
218 void CommandBufferProxy::RaiseErrorStatus() { 213 void CommandBufferProxy::RaiseErrorStatus() {
219 // Not implemented in proxy. 214 // Not implemented in proxy.
220 NOTREACHED(); 215 NOTREACHED();
221 } 216 }
OLDNEW
« no previous file with comments | « chrome/renderer/command_buffer_proxy.h ('k') | gpu/command_buffer/common/command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698