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

Unified Diff: content/browser/browser_main_loop.cc

Issue 1984323005: Pass switches::kX11VisualID and use it from gl_surface_egl.cc::GetPlatformANGLEDisplay (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just rebase Created 4 years, 7 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/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 1fd90e6e33c619fe6634c4d2d74e527351a91335..c56d426445c04239ed4cdbe4a5439a62eeda33b4 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -1410,11 +1410,14 @@ bool BrowserMainLoop::InitializeToolkit() {
#if !defined(OS_CHROMEOS)
// InitializeToolkit is called before CreateStartupTasks which one starts the
// gpu process.
+ Visual* visual = NULL;
int depth = 0;
- ui::ChooseVisualForWindow(NULL, &depth);
+ ui::ChooseVisualForWindow(&visual, &depth);
DCHECK(depth > 0);
base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
switches::kWindowDepth, base::IntToString(depth));
+ base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
+ switches::kX11VisualID, base::UintToString(visual->visualid));
#endif
#endif
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698