Index: gpu/command_buffer/client/mapped_memory_unittest.cc |
diff --git a/gpu/command_buffer/client/mapped_memory_unittest.cc b/gpu/command_buffer/client/mapped_memory_unittest.cc |
index d85311910ddadc9eadc0ab56de145393b7aae23a..4ebe5ec2fc6437afcf61893448475b3730d7c5bc 100644 |
--- a/gpu/command_buffer/client/mapped_memory_unittest.cc |
+++ b/gpu/command_buffer/client/mapped_memory_unittest.cc |
@@ -102,7 +102,7 @@ class MemoryChunkTest : public MappedMemoryTestBase { |
MappedMemoryTestBase::SetUp(); |
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); |
chunk_.reset(new MemoryChunk(kShmId, |
buffer_, |
helper_.get(), |