Index: gpu/command_buffer/service/gpu_scheduler_unittest.cc |
diff --git a/gpu/command_buffer/service/gpu_scheduler_unittest.cc b/gpu/command_buffer/service/gpu_scheduler_unittest.cc |
index 7a663d0eb379f2c8d3ca093174a2ad723849ecc9..68592083de0b729c84c0acbb57eda40418c5c53d 100644 |
--- a/gpu/command_buffer/service/gpu_scheduler_unittest.cc |
+++ b/gpu/command_buffer/service/gpu_scheduler_unittest.cc |
@@ -37,7 +37,7 @@ class GpuSchedulerTest : public testing::Test { |
shared_memory->CreateAndMapAnonymous(kRingBufferSize); |
buffer_ = static_cast<int32*>(shared_memory->memory()); |
shared_memory_buffer_ = |
- new gpu::Buffer(shared_memory.Pass(), kRingBufferSize); |
+ MakeBufferFromSharedMemory(shared_memory.Pass(), kRingBufferSize); |
memset(buffer_, 0, kRingBufferSize); |
command_buffer_.reset(new MockCommandBuffer); |