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

Unified Diff: content/browser/browser_main_loop.cc

Issue 2153373002: On Linux rework driver_version/vendor extraction from gl version (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just rebase Created 4 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
« no previous file with comments | « no previous file | content/test/gpu/page_sets/gpu_process_tests.py » ('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 d6dcc1e92bc168e3295c2243de1f13f777d22458..37cc1a9c86765e81d8c55d64ef106af4b7952b32 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -756,6 +756,14 @@ int BrowserMainLoop::PreCreateThreads() {
bool enable_transparent_visuals =
!GpuDataManagerImpl::GetInstance()->IsDriverBugWorkaroundActive(
gpu::DISABLE_TRANSPARENT_VISUALS);
+
+ // Prevent this flag to be turned off later since it is only used here.
+ if (!enable_transparent_visuals &&
+ !GpuDataManagerImpl::GetInstance()->IsCompleteGpuInfoAvailable()) {
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(
+ "disable_transparent_visuals");
+ }
+
Visual* visual = NULL;
int depth = 0;
ui::ChooseVisualForWindow(enable_transparent_visuals, &visual, &depth);
« no previous file with comments | « no previous file | content/test/gpu/page_sets/gpu_process_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698