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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.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_impl_shared_memory.h
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h b/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h
index a7868c15ea39a36ee55f5f071ae9ff88d811e465..792d0997b5028b3dc7074b16898cff4071ef150b 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h
@@ -16,6 +16,11 @@ class GpuMemoryBufferImplSharedMemory : public GpuMemoryBufferImpl {
unsigned internalformat);
virtual ~GpuMemoryBufferImplSharedMemory();
+ static void Create(const gfx::Size& size,
+ unsigned internalformat,
+ unsigned usage,
+ const CreationCallback& callback);
+
// Allocates a shared memory backed GPU memory buffer with |size| and
// |internalformat| for use by |child_process|.
static void AllocateSharedMemoryForChildProcess(

Powered by Google App Engine
This is Rietveld 408576698