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_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_ |
6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_ | 6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" | 10 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 void AllocateGpuMemoryBufferForChildProcess( | 34 void AllocateGpuMemoryBufferForChildProcess( |
35 const gfx::Size& size, | 35 const gfx::Size& size, |
36 gfx::GpuMemoryBuffer::Format format, | 36 gfx::GpuMemoryBuffer::Format format, |
37 gfx::GpuMemoryBuffer::Usage usage, | 37 gfx::GpuMemoryBuffer::Usage usage, |
38 base::ProcessHandle child_process_handle, | 38 base::ProcessHandle child_process_handle, |
39 int child_client_id, | 39 int child_client_id, |
40 const AllocationCallback& callback); | 40 const AllocationCallback& callback); |
41 void ChildProcessDeletedGpuMemoryBuffer( | 41 void ChildProcessDeletedGpuMemoryBuffer( |
42 gfx::GpuMemoryBufferType type, | 42 gfx::GpuMemoryBufferType type, |
43 const gfx::GpuMemoryBufferId& id, | 43 gfx::GpuMemoryBufferId id, |
44 base::ProcessHandle child_process_handle); | 44 base::ProcessHandle child_process_handle, |
| 45 int child_client_id); |
45 void ProcessRemoved(base::ProcessHandle process_handle); | 46 void ProcessRemoved(base::ProcessHandle process_handle); |
46 | 47 |
47 private: | 48 private: |
48 struct AllocateGpuMemoryBufferRequest; | 49 struct AllocateGpuMemoryBufferRequest; |
49 | 50 |
50 static void AllocateGpuMemoryBufferOnIO( | 51 static void AllocateGpuMemoryBufferOnIO( |
51 AllocateGpuMemoryBufferRequest* request); | 52 AllocateGpuMemoryBufferRequest* request); |
52 static void GpuMemoryBufferCreatedOnIO( | 53 static void GpuMemoryBufferCreatedOnIO( |
53 AllocateGpuMemoryBufferRequest* request, | 54 AllocateGpuMemoryBufferRequest* request, |
54 scoped_ptr<GpuMemoryBufferImpl> buffer); | 55 scoped_ptr<GpuMemoryBufferImpl> buffer); |
55 | 56 |
56 int gpu_client_id_; | 57 int gpu_client_id_; |
57 }; | 58 }; |
58 | 59 |
59 } // namespace content | 60 } // namespace content |
60 | 61 |
61 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_ | 62 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_MEMORY_BUFFER_MANAGER_H_ |
OLD | NEW |