| Index: gpu/command_buffer/common/command_buffer_mock.h
|
| diff --git a/gpu/command_buffer/common/command_buffer_mock.h b/gpu/command_buffer/common/command_buffer_mock.h
|
| index 0e78b7b8c324fb95159d6f3a003df401aeacf064..6c7cd5c2876ab178dabc67c075292f27ee0158c8 100644
|
| --- a/gpu/command_buffer/common/command_buffer_mock.h
|
| +++ b/gpu/command_buffer/common/command_buffer_mock.h
|
| @@ -13,6 +13,7 @@ class SharedMemory;
|
| }
|
|
|
| namespace gpu {
|
| +class GpuMemoryBuffer;
|
|
|
| // An NPObject that implements a shared memory command buffer and a synchronous
|
| // API to manage the put and get pointers.
|
| @@ -37,6 +38,12 @@ class MockCommandBuffer : public CommandBuffer {
|
| MOCK_METHOD1(SetContextLostReason,
|
| void(error::ContextLostReason context_lost_reason));
|
| MOCK_METHOD0(InsertSyncPoint, uint32());
|
| + MOCK_METHOD4(CreateGpuMemoryBuffer,
|
| + gfx::GpuMemoryBuffer*(size_t width,
|
| + size_t height,
|
| + unsigned internalformat,
|
| + int32* id));
|
| + MOCK_METHOD1(DestroyGpuMemoryBuffer, void(int32 id));
|
|
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(MockCommandBuffer);
|
|
|