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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h

Issue 685983005: gpu: Associate all GpuMemoryBuffers with unique IDs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more ozone build fix 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h b/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h
index 2d28a3ead3b281857c7366b303e5f3976c183412..d84d031b8712dac4dd6f71f2d08b9c094aa8fcee 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h
@@ -12,11 +12,13 @@ namespace content {
// Implementation of GPU memory buffer based on shared memory.
class GpuMemoryBufferImplSharedMemory : public GpuMemoryBufferImpl {
public:
- static void Create(const gfx::Size& size,
+ static void Create(gfx::GpuMemoryBufferId id,
+ const gfx::Size& size,
Format format,
const CreationCallback& callback);
- static void AllocateForChildProcess(const gfx::Size& size,
+ static void AllocateForChildProcess(gfx::GpuMemoryBufferId id,
+ const gfx::Size& size,
Format format,
base::ProcessHandle child_process,
const AllocationCallback& callback);
@@ -41,7 +43,8 @@ class GpuMemoryBufferImplSharedMemory : public GpuMemoryBufferImpl {
gfx::GpuMemoryBufferHandle GetHandle() const override;
private:
- GpuMemoryBufferImplSharedMemory(const gfx::Size& size,
+ GpuMemoryBufferImplSharedMemory(gfx::GpuMemoryBufferId id,
+ const gfx::Size& size,
Format format,
const DestructionCallback& callback,
scoped_ptr<base::SharedMemory> shared_memory);

Powered by Google App Engine
This is Rietveld 408576698