| Index: content/browser/gpu/browser_gpu_memory_buffer_manager.h
|
| diff --git a/content/browser/gpu/browser_gpu_memory_buffer_manager.h b/content/browser/gpu/browser_gpu_memory_buffer_manager.h
|
| index b5ea1482036d14956d99e7170ef74725fe6d9187..aea087203a1f0124ab4e6c1a7f504be5290f3de7 100644
|
| --- a/content/browser/gpu/browser_gpu_memory_buffer_manager.h
|
| +++ b/content/browser/gpu/browser_gpu_memory_buffer_manager.h
|
| @@ -41,16 +41,21 @@ class CONTENT_EXPORT BrowserGpuMemoryBufferManager
|
| int child_client_id,
|
| const AllocationCallback& callback);
|
| void ChildProcessDeletedGpuMemoryBuffer(
|
| - gfx::GpuMemoryBufferType type,
|
| gfx::GpuMemoryBufferId id,
|
| base::ProcessHandle child_process_handle,
|
| int child_client_id,
|
| uint32 sync_point);
|
| - void ProcessRemoved(base::ProcessHandle process_handle);
|
| + void ProcessRemoved(base::ProcessHandle process_handle, int client_id);
|
|
|
| private:
|
| struct AllocateGpuMemoryBufferRequest;
|
|
|
| + void GpuMemoryBufferAllocatedForChildProcess(
|
| + base::ProcessHandle child_process_handle,
|
| + int child_client_id,
|
| + const AllocationCallback& callback,
|
| + const gfx::GpuMemoryBufferHandle& handle);
|
| +
|
| static void AllocateGpuMemoryBufferOnIO(
|
| AllocateGpuMemoryBufferRequest* request);
|
| static void GpuMemoryBufferCreatedOnIO(
|
| @@ -58,6 +63,11 @@ class CONTENT_EXPORT BrowserGpuMemoryBufferManager
|
| scoped_ptr<GpuMemoryBufferImpl> buffer);
|
|
|
| int gpu_client_id_;
|
| +
|
| + typedef base::hash_map<gfx::GpuMemoryBufferId, gfx::GpuMemoryBufferType>
|
| + BufferMap;
|
| + typedef base::hash_map<int, BufferMap> ClientMap;
|
| + ClientMap clients_;
|
| };
|
|
|
| } // namespace content
|
|
|