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

Unified Diff: content/browser/gpu/gpu_memory_buffer_factory_host_impl.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 side-by-side diff with in-line comments
Download patch
Index: content/browser/gpu/gpu_memory_buffer_factory_host_impl.h
diff --git a/content/browser/gpu/gpu_memory_buffer_factory_host_impl.h b/content/browser/gpu/gpu_memory_buffer_factory_host_impl.h
index e425b948f5dcda2dc96cb251123355164525c0c3..356381ec92c12ff14aeeeea1d136753c9ae78a15 100644
--- a/content/browser/gpu/gpu_memory_buffer_factory_host_impl.h
+++ b/content/browser/gpu/gpu_memory_buffer_factory_host_impl.h
@@ -19,12 +19,16 @@ class CONTENT_EXPORT GpuMemoryBufferFactoryHostImpl
// Overridden from GpuMemoryBufferFactoryHost:
void CreateGpuMemoryBuffer(
- const gfx::GpuMemoryBufferHandle& handle,
+ gfx::GpuMemoryBufferType type,
+ gfx::GpuMemoryBufferId id,
const gfx::Size& size,
gfx::GpuMemoryBuffer::Format format,
gfx::GpuMemoryBuffer::Usage usage,
+ int client_id,
const CreateGpuMemoryBufferCallback& callback) override;
- void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle,
+ void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferType type,
+ gfx::GpuMemoryBufferId id,
+ int client_id,
int32 sync_point) override;
void set_gpu_host_id(int gpu_host_id) { gpu_host_id_ = gpu_host_id; }

Powered by Google App Engine
This is Rietveld 408576698