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

Unified Diff: content/browser/browser_main_loop.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: scoped_ptr<base::ScopedFD> instead of base::ScopedFD* Created 5 years, 4 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/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index e5ee0cfc3ae607054efc2437abbda88c43ac6914..d30350435ae4c5e25a287302821fea425802edea 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -620,6 +620,8 @@ void BrowserMainLoop::PostMainMessageLoopStart() {
client_native_pixmap_factory_ = ui::ClientNativePixmapFactory::Create();
ui::ClientNativePixmapFactory::SetInstance(
client_native_pixmap_factory_.get());
+ auto scoped_fd(ui::ClientNativePixmapFactory::GetInstance()->OpenVgemFD());
spang 2015/08/17 18:03:41 The usual syntax is: auto scoped_fd = ui::ClientN
dshwang 2015/08/18 14:14:39 Done.
+ ui::ClientNativePixmapFactory::GetInstance()->SetVgemFD(scoped_fd.Pass());
#endif
if (parsed_command_line_.HasSwitch(switches::kMemoryMetrics)) {

Powered by Google App Engine
This is Rietveld 408576698