Index: gpu/command_buffer/service/common_decoder_unittest.cc |
=================================================================== |
--- gpu/command_buffer/service/common_decoder_unittest.cc (revision 35153) |
+++ gpu/command_buffer/service/common_decoder_unittest.cc (working copy) |
@@ -78,15 +78,15 @@ |
} |
// Overridden from CommandBufferEngine. |
- virtual void* GetSharedMemoryAddress(int32 shm_id) { |
- return (shm_id == kValidShmId) ? buffer_ : NULL; |
+ virtual Buffer GetSharedMemoryBuffer(int32 shm_id) { |
+ Buffer buffer; |
+ if (shm_id == kValidShmId) { |
+ buffer.ptr = buffer_; |
+ buffer.size = kBufferSize; |
+ } |
+ return buffer; |
} |
- // Overridden from CommandBufferEngine. |
- virtual size_t GetSharedMemorySize(int32 shm_id) { |
- return (shm_id == kValidShmId) ? kBufferSize : 0; |
- } |
- |
template <typename T> |
T GetSharedMemoryAs(uint32 offset) { |
DCHECK(offset < kBufferSize); |