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

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

Issue 685983005: gpu: Associate all GpuMemoryBuffers with unique IDs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fixes 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_io_surface.h
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h b/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h
index 90263ad00be6dd477993be1341455f209c57ef41..bc64453cb29a8eb8bb618e5aa7ccda6a927f0d51 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h
@@ -15,12 +15,14 @@ namespace content {
// Implementation of GPU memory buffer based on IO surfaces.
class GpuMemoryBufferImplIOSurface : public GpuMemoryBufferImpl {
public:
- static void Create(const gfx::Size& size,
+ static void Create(gfx::GpuMemoryBufferId id,
+ const gfx::Size& size,
Format format,
int client_id,
const CreationCallback& callback);
- static void AllocateForChildProcess(const gfx::Size& size,
+ static void AllocateForChildProcess(gfx::GpuMemoryBufferId id,
+ const gfx::Size& size,
Format format,
int child_client_id,
const AllocationCallback& callback);
@@ -46,7 +48,8 @@ class GpuMemoryBufferImplIOSurface : public GpuMemoryBufferImpl {
gfx::GpuMemoryBufferHandle GetHandle() const override;
private:
- GpuMemoryBufferImplIOSurface(const gfx::Size& size,
+ GpuMemoryBufferImplIOSurface(gfx::GpuMemoryBufferId id,
+ const gfx::Size& size,
Format format,
const DestructionCallback& callback,
IOSurfaceRef io_surface);

Powered by Google App Engine
This is Rietveld 408576698