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

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: 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/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 0d2029557c93ef7bdb7649e1f9a6a12228fd95e0..6cdf6b726d5e465db4ce0156e2a572932d1a85c0 100644
--- a/content/browser/gpu/gpu_memory_buffer_factory_host_impl.h
+++ b/content/browser/gpu/gpu_memory_buffer_factory_host_impl.h
@@ -19,23 +19,24 @@ 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; }
private:
- void CreateGpuMemoryBufferOnIO(const gfx::GpuMemoryBufferHandle& handle,
- const gfx::Size& size,
- gfx::GpuMemoryBuffer::Format format,
- gfx::GpuMemoryBuffer::Usage usage,
- const CreateGpuMemoryBufferCallback& callback);
- void DestroyGpuMemoryBufferOnIO(const gfx::GpuMemoryBufferHandle& handle,
+ void DestroyGpuMemoryBufferOnIO(gfx::GpuMemoryBufferType type,
+ gfx::GpuMemoryBufferId id,
+ int client_id,
int32 sync_point);
void OnGpuMemoryBufferCreated(uint32 request_id,
const gfx::GpuMemoryBufferHandle& handle);
« no previous file with comments | « content/browser/gpu/browser_gpu_memory_buffer_manager.cc ('k') | content/browser/gpu/gpu_memory_buffer_factory_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698