[Media Router] Add integration tests and e2e tests for media router and presentation...
[chromium-blink-merge.git] / components / view_manager / gles2 / mojo_gpu_memory_buffer_manager.h
blob4f2f0ecc60f5ca4587c7ec4412c163690ded2e2f
1 // Copyright 2015 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 COMPONENTS_VIEW_MANAGER_GLES2_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define COMPONENTS_VIEW_MANAGER_GLES2_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
8 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
10 namespace gles2 {
12 class MojoGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
13 public:
14 MojoGpuMemoryBufferManager();
15 ~MojoGpuMemoryBufferManager() override;
17 // Overridden from gpu::GpuMemoryBufferManager:
18 scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
19 const gfx::Size& size,
20 gfx::GpuMemoryBuffer::Format format,
21 gfx::GpuMemoryBuffer::Usage usage) override;
22 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
23 ClientBuffer buffer) override;
24 void SetDestructionSyncPoint(gfx::GpuMemoryBuffer* buffer,
25 uint32 sync_point) override;
27 private:
28 DISALLOW_COPY_AND_ASSIGN(MojoGpuMemoryBufferManager);
31 } // namespace gles2
33 #endif // COMPONENTS_VIEW_MANAGER_GLES2_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_