| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_MUS_COMMON_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ | 5 #ifndef COMPONENTS_MUS_COMMON_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ |
| 6 #define COMPONENTS_MUS_COMMON_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ | 6 #define COMPONENTS_MUS_COMMON_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // Overridden from gpu::GpuMemoryBufferManager: | 22 // Overridden from gpu::GpuMemoryBufferManager: |
| 23 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( | 23 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( |
| 24 const gfx::Size& size, | 24 const gfx::Size& size, |
| 25 gfx::BufferFormat format, | 25 gfx::BufferFormat format, |
| 26 gfx::BufferUsage usage, | 26 gfx::BufferUsage usage, |
| 27 gpu::SurfaceHandle surface_handle) override; | 27 gpu::SurfaceHandle surface_handle) override; |
| 28 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle( | 28 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle( |
| 29 const gfx::GpuMemoryBufferHandle& handle, | 29 const gfx::GpuMemoryBufferHandle& handle, |
| 30 const gfx::Size& size, | 30 const gfx::Size& size, |
| 31 gfx::BufferFormat format) override; | 31 gfx::BufferFormat format) override; |
| 32 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromClientId( | |
| 33 int client_id, | |
| 34 const gfx::GpuMemoryBufferId& gpu_memory_buffer_id) override; | |
| 35 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer( | 32 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer( |
| 36 ClientBuffer buffer) override; | 33 ClientBuffer buffer) override; |
| 37 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer, | 34 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer, |
| 38 const gpu::SyncToken& sync_token) override; | 35 const gpu::SyncToken& sync_token) override; |
| 39 | 36 |
| 40 private: | 37 private: |
| 41 DISALLOW_COPY_AND_ASSIGN(MojoGpuMemoryBufferManager); | 38 DISALLOW_COPY_AND_ASSIGN(MojoGpuMemoryBufferManager); |
| 42 }; | 39 }; |
| 43 | 40 |
| 44 } // namespace mus | 41 } // namespace mus |
| 45 | 42 |
| 46 #endif // COMPONENTS_MUS_COMMON_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ | 43 #endif // COMPONENTS_MUS_COMMON_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ |
| OLD | NEW |