Index: gpu/command_buffer/service/common_decoder_unittest.cc |
diff --git a/gpu/command_buffer/service/common_decoder_unittest.cc b/gpu/command_buffer/service/common_decoder_unittest.cc |
index 5e89a5f2a8485314abed9723847b0533c72a9498..11274e05f07a4267cad7df25fcd931be7a4daa53 100644 |
--- a/gpu/command_buffer/service/common_decoder_unittest.cc |
+++ b/gpu/command_buffer/service/common_decoder_unittest.cc |
@@ -83,7 +83,7 @@ class MockCommandBufferEngine : public CommandBufferEngine { |
get_offset_(0) { |
scoped_ptr<base::SharedMemory> shared_memory(new base::SharedMemory()); |
shared_memory->CreateAndMapAnonymous(kBufferSize); |
- buffer_ = new gpu::Buffer(shared_memory.Pass(), kBufferSize); |
+ buffer_ = MakeBufferFromSharedMemory(shared_memory.Pass(), kBufferSize); |
} |
// Overridden from CommandBufferEngine. |