Index: gpu/command_buffer/client/client_test_helper.cc |
diff --git a/gpu/command_buffer/client/client_test_helper.cc b/gpu/command_buffer/client/client_test_helper.cc |
index f5e58f23ae72c87e9345c7afb9d336ad9edbd224..46011adaf55f5891ca8e6e488b1b5abdb88a9074 100644 |
--- a/gpu/command_buffer/client/client_test_helper.cc |
+++ b/gpu/command_buffer/client/client_test_helper.cc |
@@ -75,7 +75,8 @@ scoped_refptr<gpu::Buffer> MockCommandBufferBase::CreateTransferBuffer( |
int32 ndx = *id - kTransferBufferBaseId; |
scoped_ptr<base::SharedMemory> shared_memory(new base::SharedMemory()); |
shared_memory->CreateAndMapAnonymous(size); |
- transfer_buffer_buffers_[ndx] = new gpu::Buffer(shared_memory.Pass(), size); |
+ transfer_buffer_buffers_[ndx] = |
+ MakeBufferFromSharedMemory(shared_memory.Pass(), size); |
} |
return GetTransferBuffer(*id); |
} |