Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc |
index 1acdf3526600e5c5068459d066bbef6d4f9e13de..b15bd6bfc2d356c670deaa23f8eac27f4db193e3 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc |
@@ -1423,7 +1423,7 @@ MockCommandBufferEngine() { |
scoped_ptr<base::SharedMemory> shm(new base::SharedMemory()); |
shm->CreateAndMapAnonymous(kSharedBufferSize); |
- valid_buffer_ = new gpu::Buffer(shm.Pass(), kSharedBufferSize); |
+ valid_buffer_ = MakeBufferFromSharedMemory(shm.Pass(), kSharedBufferSize); |
ClearSharedMemory(); |
} |