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

Unified Diff: content/child/child_gpu_memory_buffer_manager.cc

Issue 1248713002: ozone: ClientPixmapManager passes VGEM fd from browser to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to lastest crrev.com/1128113011 Created 5 years, 5 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 | « content/child/BUILD.gn ('k') | content/child/child_native_pixmap_manager_ozone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_gpu_memory_buffer_manager.cc
diff --git a/content/child/child_gpu_memory_buffer_manager.cc b/content/child/child_gpu_memory_buffer_manager.cc
index 5513e5904becf6a58e3ac99ae04a169acbb6c5b5..7a7ab10a84d23be26e913416936362b5f800618b 100644
--- a/content/child/child_gpu_memory_buffer_manager.cc
+++ b/content/child/child_gpu_memory_buffer_manager.cc
@@ -7,6 +7,10 @@
#include "content/common/child_process_messages.h"
#include "content/common/gpu/client/gpu_memory_buffer_impl.h"
+#if defined(USE_OZONE)
+#include "content/child/child_native_pixmap_manager_ozone.h"
+#endif
+
namespace content {
namespace {
@@ -40,6 +44,10 @@ ChildGpuMemoryBufferManager::AllocateGpuMemoryBuffer(
"height",
size.height());
+#if defined(USE_OZONE)
+ ChildNativePixmapManager::CreateSingleton(sender_.get());
+#endif
+
gfx::GpuMemoryBufferHandle handle;
IPC::Message* message = new ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer(
size.width(), size.height(), format, usage, &handle);
« no previous file with comments | « content/child/BUILD.gn ('k') | content/child/child_native_pixmap_manager_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698