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

Unified Diff: mojo/gles2/command_buffer_client_impl.cc

Issue 215803002: Remove CommandBuffer::GetTransferBuffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 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 | « mojo/gles2/command_buffer_client_impl.h ('k') | mojo/mojo_examples.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gles2/command_buffer_client_impl.cc
diff --git a/mojo/gles2/command_buffer_client_impl.cc b/mojo/gles2/command_buffer_client_impl.cc
index 16e71934fca55ba6a86afd3d092d17cd982d90ff..8c7e6c010eea98a66fb79d04ea70c5676aa7350d 100644
--- a/mojo/gles2/command_buffer_client_impl.cc
+++ b/mojo/gles2/command_buffer_client_impl.cc
@@ -103,11 +103,6 @@ void CommandBufferClientImpl::SetGetBuffer(int32 shm_id) {
last_put_offset_ = -1;
}
-void CommandBufferClientImpl::SetGetOffset(int32 get_offset) {
- // Not implemented in proxy.
- NOTREACHED();
-}
-
scoped_refptr<gpu::Buffer> CommandBufferClientImpl::CreateTransferBuffer(
size_t size,
int32* id) {
@@ -124,7 +119,6 @@ scoped_refptr<gpu::Buffer> CommandBufferClientImpl::CreateTransferBuffer(
return NULL;
*id = ++next_transfer_buffer_id_;
- DCHECK(transfer_buffers_.find(*id) == transfer_buffers_.end());
AllocationScope scope;
command_buffer_->RegisterTransferBuffer(
@@ -132,44 +126,13 @@ scoped_refptr<gpu::Buffer> CommandBufferClientImpl::CreateTransferBuffer(
scoped_refptr<gpu::Buffer> buffer =
new gpu::Buffer(shared_memory.Pass(), size);
- transfer_buffers_[*id] = buffer;
-
return buffer;
}
void CommandBufferClientImpl::DestroyTransferBuffer(int32 id) {
- TransferBufferMap::iterator it = transfer_buffers_.find(id);
- if (it != transfer_buffers_.end())
- transfer_buffers_.erase(it);
command_buffer_->DestroyTransferBuffer(id);
}
-scoped_refptr<gpu::Buffer> CommandBufferClientImpl::GetTransferBuffer(
- int32 id) {
- TransferBufferMap::iterator it = transfer_buffers_.find(id);
- if (it != transfer_buffers_.end()) {
- return it->second;
- } else {
- return NULL;
- }
-}
-
-void CommandBufferClientImpl::SetToken(int32 token) {
- // Not implemented in proxy.
- NOTREACHED();
-}
-
-void CommandBufferClientImpl::SetParseError(gpu::error::Error error) {
- // Not implemented in proxy.
- NOTREACHED();
-}
-
-void CommandBufferClientImpl::SetContextLostReason(
- gpu::error::ContextLostReason reason) {
- // Not implemented in proxy.
- NOTREACHED();
-}
-
gpu::Capabilities CommandBufferClientImpl::GetCapabilities() {
// TODO(piman)
NOTIMPLEMENTED();
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.h ('k') | mojo/mojo_examples.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698