Index: content/gpu/gpu_main.cc |
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc |
index 93d03aa43db85886b5dbc9ab48d12206c44e532d..60f605b1de9deb4f4bda82dcd569cbcde24a4162 100644 |
--- a/content/gpu/gpu_main.cc |
+++ b/content/gpu/gpu_main.cc |
@@ -292,9 +292,11 @@ int GpuMain(const MainFunctionParams& parameters) { |
if (!CollectGraphicsInfo(gpu_info)) |
dead_on_arrival = true; |
-#if defined(OS_CHROMEOS) || defined(OS_ANDROID) |
- // Recompute gpu driver bug workarounds - this is specifically useful |
- // on systems where vendor_id/device_id aren't available. |
+#if defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_LINUX) |
+ // Recompute gpu driver bug workarounds. |
+ // This is necessary on systems where vendor_id/device_id aren't available |
+ // (Chrome OS, Android) or where workarounds may be dependent on GL_VENDOR |
+ // and GL_RENDERER strings which are lazily computed (Linux). |
if (!command_line.HasSwitch(switches::kDisableGpuDriverBugWorkarounds)) { |
gpu::ApplyGpuDriverBugWorkarounds( |
gpu_info, const_cast<base::CommandLine*>(&command_line)); |