| 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);
|
|
|