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> |
| 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "content/child/thread_safe_sender.h" | 11 #include "content/child/thread_safe_sender.h" |
10 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" | 12 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" |
11 | 13 |
12 namespace content { | 14 namespace content { |
13 | 15 |
14 class ChildGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager { | 16 class ChildGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager { |
15 public: | 17 public: |
16 explicit ChildGpuMemoryBufferManager(ThreadSafeSender* sender); | 18 explicit ChildGpuMemoryBufferManager(ThreadSafeSender* sender); |
17 ~ChildGpuMemoryBufferManager() override; | 19 ~ChildGpuMemoryBufferManager() override; |
(...skipping 15 matching lines...) Expand all Loading... |
33 | 35 |
34 private: | 36 private: |
35 scoped_refptr<ThreadSafeSender> sender_; | 37 scoped_refptr<ThreadSafeSender> sender_; |
36 | 38 |
37 DISALLOW_COPY_AND_ASSIGN(ChildGpuMemoryBufferManager); | 39 DISALLOW_COPY_AND_ASSIGN(ChildGpuMemoryBufferManager); |
38 }; | 40 }; |
39 | 41 |
40 } // namespace content | 42 } // namespace content |
41 | 43 |
42 #endif // CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_ | 44 #endif // CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_ |
OLD | NEW |