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

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

Issue 540443002: Enable sync allocation of GpuMemoryBuffers from the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
Index: content/common/gpu/client/gpu_memory_buffer_factory_host.h
diff --git a/content/common/gpu/client/gpu_memory_buffer_factory_host.h b/content/common/gpu/client/gpu_memory_buffer_factory_host.h
index 9e616e27e650ada5805626dc1ea8d94d54c73fb7..cf16c4b9151f53351a9cd23e68945d5b07ed6bc9 100644
--- a/content/common/gpu/client/gpu_memory_buffer_factory_host.h
+++ b/content/common/gpu/client/gpu_memory_buffer_factory_host.h
@@ -28,6 +28,14 @@ class CONTENT_EXPORT GpuMemoryBufferFactoryHost {
unsigned internalformat,
unsigned usage,
const CreateGpuMemoryBufferCallback& callback) = 0;
+ // This function is to be called only for images allocated from the
+ // browser process command buffer. Allocations originating from the renderers
+ // should use the async version of the function.
+ virtual gfx::GpuMemoryBufferHandle CreateGpuMemoryBufferSync(
+ const gfx::GpuMemoryBufferHandle& handle,
+ const gfx::Size& size,
+ unsigned internalformat,
+ unsigned usage) = 0;
reveman 2014/09/04 19:43:31 Not a fan of this alternative function for doing t
piman 2014/09/04 19:59:20 We should not block the UI thread except when we r
reveman 2014/09/04 22:37:24 Agree. I guess my question was, can we make this i
virtual void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle,
int32 sync_point) = 0;

Powered by Google App Engine
This is Rietveld 408576698