| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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 COMPONENTS_MUS_GPU_GPU_MEMORY_BUFFER_MANAGER_MUS_LOCAL_H_ | |
| 6 #define COMPONENTS_MUS_GPU_GPU_MEMORY_BUFFER_MANAGER_MUS_LOCAL_H_ | |
| 7 | |
| 8 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" | |
| 9 | |
| 10 namespace mus { | |
| 11 | |
| 12 // A GpuMemoryBufferManager used locally. | |
| 13 class GpuMemoryBufferManagerMusLocal : public gpu::GpuMemoryBufferManager { | |
| 14 public: | |
| 15 GpuMemoryBufferManagerMusLocal(int gpu_client_id, | |
| 16 uint64_t gpu_client_tracing_id); | |
| 17 ~GpuMemoryBufferManagerMusLocal() override; | |
| 18 | |
| 19 // Overridden from gpu::GpuMemoryBufferManager: | |
| 20 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( | |
| 21 const gfx::Size& size, | |
| 22 gfx::BufferFormat format, | |
| 23 gfx::BufferUsage usage, | |
| 24 gpu::SurfaceHandle surface_handle) override; | |
| 25 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle( | |
| 26 const gfx::GpuMemoryBufferHandle& handle, | |
| 27 const gfx::Size& size, | |
| 28 gfx::BufferFormat format) override; | |
| 29 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromClientId( | |
| 30 int client_id, | |
| 31 const gfx::GpuMemoryBufferId& gpu_memory_buffer_id) override; | |
| 32 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer( | |
| 33 ClientBuffer buffer) override; | |
| 34 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer, | |
| 35 const gpu::SyncToken& sync_token) override; | |
| 36 | |
| 37 private: | |
| 38 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferManagerMusLocal); | |
| 39 }; | |
| 40 | |
| 41 } // namespace mus | |
| 42 | |
| 43 #endif // COMPONENTS_MUS_GPU_GPU_MEMORY_BUFFER_MANAGER_MUS_LOCAL_H_ | |
| OLD | NEW |