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

Unified Diff: content/common/gpu/gpu_memory_buffer_factory.h

Issue 1382043003: content: Add CreateGpuMemoryBufferFromHandle to GpuMemoryBufferFactory interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iosurface fix Created 5 years, 2 months 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
« no previous file with comments | « no previous file | content/common/gpu/gpu_memory_buffer_factory_io_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_memory_buffer_factory.h
diff --git a/content/common/gpu/gpu_memory_buffer_factory.h b/content/common/gpu/gpu_memory_buffer_factory.h
index 7edb0e44318d2e5e4e6b0dbd053f6eac1fd0d556..3054075eb581660e55148e8d4824cc4b7c77b452 100644
--- a/content/common/gpu/gpu_memory_buffer_factory.h
+++ b/content/common/gpu/gpu_memory_buffer_factory.h
@@ -45,6 +45,15 @@ class CONTENT_EXPORT GpuMemoryBufferFactory {
int client_id,
gfx::PluginWindowHandle surface_handle) = 0;
+ // Creates a new GPU memory buffer instance from an existing handle. A valid
+ // handle is returned on success. It can be called on any thread.
+ virtual gfx::GpuMemoryBufferHandle CreateGpuMemoryBufferFromHandle(
+ const gfx::GpuMemoryBufferHandle& handle,
+ gfx::GpuMemoryBufferId id,
+ const gfx::Size& size,
+ gfx::BufferFormat format,
+ int client_id) = 0;
+
// Destroys GPU memory buffer identified by |id|.
// It can be called on any thread.
virtual void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
« no previous file with comments | « no previous file | content/common/gpu/gpu_memory_buffer_factory_io_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698