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

Unified Diff: content/gpu/gpu_main.cc

Issue 1406323005: gpu: Recompute driver bug workarounds on linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Expand comment Created 5 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698