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

Unified Diff: content/common/gpu/gpu_memory_buffer_factory_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: 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/gpu_memory_buffer_factory_io_surface.h
diff --git a/content/common/gpu/gpu_memory_buffer_factory_io_surface.h b/content/common/gpu/gpu_memory_buffer_factory_io_surface.h
index f7f11b4ec02186a85e36c1343070667a64907c00..1ee16ef582f818275fad44aa799ddd89c561a7d0 100644
--- a/content/common/gpu/gpu_memory_buffer_factory_io_surface.h
+++ b/content/common/gpu/gpu_memory_buffer_factory_io_surface.h
@@ -27,18 +27,20 @@ class GpuMemoryBufferFactoryIOSurface {
// Creates a IOSurface backed GPU memory buffer with |size| and
// |internalformat|. A valid handle is returned on success.
gfx::GpuMemoryBufferHandle CreateGpuMemoryBuffer(
- const gfx::GpuMemoryBufferId& id,
+ gfx::GpuMemoryBufferId id,
const gfx::Size& size,
- gfx::GpuMemoryBuffer::Format format);
+ gfx::GpuMemoryBuffer::Format format,
+ int client_id);
// Destroy a previously created GPU memory buffer.
- void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferId& id);
+ void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, int client_id);
// Creates a GLImage instance for a GPU memory buffer.
scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffer(
- const gfx::GpuMemoryBufferId& id,
+ gfx::GpuMemoryBufferId id,
const gfx::Size& size,
- gfx::GpuMemoryBuffer::Format format);
+ gfx::GpuMemoryBuffer::Format format,
+ int client_id);
private:
typedef std::pair<int, int> IOSurfaceMapKey;
« no previous file with comments | « content/common/gpu/gpu_memory_buffer_factory_android.cc ('k') | content/common/gpu/gpu_memory_buffer_factory_io_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698