summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorzmo@chromium.org <zmo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-10 22:41:00 +0000
committerzmo@chromium.org <zmo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-10 22:41:00 +0000
commitbdba991c95e4fbd364a83112fe6ebbe8640b51be (patch)
tree07d369254f5237b1f915738b7d81899bfbb3a2fb /content
parent890ac08bb68aff6d4bc2205debba069b5ef4cb59 (diff)
downloadchromium_src-bdba991c95e4fbd364a83112fe6ebbe8640b51be.zip
chromium_src-bdba991c95e4fbd364a83112fe6ebbe8640b51be.tar.gz
chromium_src-bdba991c95e4fbd364a83112fe6ebbe8640b51be.tar.bz2
Recompute gpu driver bug workarounds at gpu process startup
So we can make decisions based on full gpu_info. This is specifically useful on chromeos where vendor_id/device_id are unavailable, and we need gl_vendor/gl_renderer strings to identify a gpu. BUG=306231 TEST=disable_framebuffer_multisample is on for chromeos with Mali R=piman@chromium.org Review URL: https://codereview.chromium.org/111883003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239896 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/gpu/gpu_main.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 805ced5..766fc91 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -236,6 +236,13 @@ int GpuMain(const MainFunctionParams& parameters) {
VLOG(1) << "gpu::CollectGraphicsInfo failed";
GetContentClient()->SetGpuInfo(gpu_info);
+ // Recompute gpu driver bug workarounds - this is specifically useful
+ // on ChromeOS where vendor_id/device_id aren't available.
+ if (!command_line.HasSwitch(switches::kDisableGpuDriverBugWorkarounds)) {
+ gpu::ApplyGpuDriverBugWorkarounds(
+ gpu_info, const_cast<CommandLine*>(&command_line));
+ }
+
#if defined(OS_LINUX)
initialized_gl_context = true;
#if !defined(OS_CHROMEOS)