Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Side by Side Diff: content/browser/gpu/browser_gpu_memory_buffer_manager.h

Issue 685983005: gpu: Associate all GpuMemoryBuffers with unique IDs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698