OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_ | 5 #ifndef CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_ |
6 #define CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_ | 6 #define CONTENT_CHILD_CHILD_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 10 matching lines...) Expand all Loading... |
21 // Overridden from gpu::GpuMemoryBufferManager: | 21 // Overridden from gpu::GpuMemoryBufferManager: |
22 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( | 22 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( |
23 const gfx::Size& size, | 23 const gfx::Size& size, |
24 gfx::BufferFormat format, | 24 gfx::BufferFormat format, |
25 gfx::BufferUsage usage, | 25 gfx::BufferUsage usage, |
26 gpu::SurfaceHandle surface_handle) override; | 26 gpu::SurfaceHandle surface_handle) override; |
27 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle( | 27 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle( |
28 const gfx::GpuMemoryBufferHandle& handle, | 28 const gfx::GpuMemoryBufferHandle& handle, |
29 const gfx::Size& size, | 29 const gfx::Size& size, |
30 gfx::BufferFormat format) override; | 30 gfx::BufferFormat format) override; |
31 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer( | |
32 ClientBuffer buffer) override; | |
33 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer, | 31 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer, |
34 const gpu::SyncToken& sync_token) override; | 32 const gpu::SyncToken& sync_token) override; |
35 | 33 |
36 private: | 34 private: |
37 scoped_refptr<ThreadSafeSender> sender_; | 35 scoped_refptr<ThreadSafeSender> sender_; |
38 | 36 |
39 DISALLOW_COPY_AND_ASSIGN(ChildGpuMemoryBufferManager); | 37 DISALLOW_COPY_AND_ASSIGN(ChildGpuMemoryBufferManager); |
40 }; | 38 }; |
41 | 39 |
42 } // namespace content | 40 } // namespace content |
43 | 41 |
44 #endif // CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_ | 42 #endif // CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_ |
OLD | NEW |