1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CC_TEST_TEST_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define CC_TEST_TEST_GPU_MEMORY_BUFFER_MANAGER_H_
8 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
12 class TestGpuMemoryBufferManager
: public gpu::GpuMemoryBufferManager
{
14 TestGpuMemoryBufferManager();
15 ~TestGpuMemoryBufferManager() override
;
17 // Overridden from gpu::GpuMemoryBufferManager:
18 scoped_ptr
<gfx::GpuMemoryBuffer
> AllocateGpuMemoryBuffer(
19 const gfx::Size
& size
,
20 gfx::BufferFormat format
,
21 gfx::BufferUsage usage
) override
;
22 gfx::GpuMemoryBuffer
* GpuMemoryBufferFromClientBuffer(
23 ClientBuffer buffer
) override
;
24 void SetDestructionSyncPoint(gfx::GpuMemoryBuffer
* buffer
,
25 uint32 sync_point
) override
;
28 DISALLOW_COPY_AND_ASSIGN(TestGpuMemoryBufferManager
);
33 #endif // CC_TEST_TEST_GPU_MEMORY_BUFFER_MANAGER_H_