| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef UI_AURA_MUS_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ | |
| 6 #define UI_AURA_MUS_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" | |
| 12 | |
| 13 namespace aura { | |
| 14 | |
| 15 class MojoGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager { | |
| 16 public: | |
| 17 MojoGpuMemoryBufferManager(); | |
| 18 ~MojoGpuMemoryBufferManager() override; | |
| 19 | |
| 20 // Overridden from gpu::GpuMemoryBufferManager: | |
| 21 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( | |
| 22 const gfx::Size& size, | |
| 23 gfx::BufferFormat format, | |
| 24 gfx::BufferUsage usage, | |
| 25 gpu::SurfaceHandle surface_handle) override; | |
| 26 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle( | |
| 27 const gfx::GpuMemoryBufferHandle& handle, | |
| 28 const gfx::Size& size, | |
| 29 gfx::BufferFormat format) override; | |
| 30 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer, | |
| 31 const gpu::SyncToken& sync_token) override; | |
| 32 | |
| 33 private: | |
| 34 DISALLOW_COPY_AND_ASSIGN(MojoGpuMemoryBufferManager); | |
| 35 }; | |
| 36 | |
| 37 } // namespace aura | |
| 38 | |
| 39 #endif // UI_AURA_MUS_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ | |
| OLD | NEW |