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..d7da8b398f4607a56edc13d31321824d53dd3100 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,13 @@ 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)); |
+ MOCK_METHOD1(GetImage, gfx::GLImage*(int32 id)); |
private: |
DISALLOW_COPY_AND_ASSIGN(MockCommandBuffer); |