diff options
author | zmo@chromium.org <zmo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-31 00:11:51 +0000 |
---|---|---|
committer | zmo@chromium.org <zmo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-31 00:11:51 +0000 |
commit | a4cdbab0a6b3fe108efc74ec5bf579689d40bbed (patch) | |
tree | e23fd4a39c8f77ecf3bc1208a555618f14e49a98 /content/browser/gpu/gpu_internals_ui.cc | |
parent | 6d36f8ad4a7af6287ecc6e110c2b95f77c9c40e8 (diff) | |
download | chromium_src-a4cdbab0a6b3fe108efc74ec5bf579689d40bbed.zip chromium_src-a4cdbab0a6b3fe108efc74ec5bf579689d40bbed.tar.gz chromium_src-a4cdbab0a6b3fe108efc74ec5bf579689d40bbed.tar.bz2 |
Add driver bug workarounds to about:gpu page.
Also, fixed a few issues in about:gpu
1) get rid of the multi-tab stuff - it's causing a Uncaught TypeError.
2) set the body margin correctly
BUG=244576
TEST=about:gpu page with driver bug workarounds info
R=gman@chromium.org, nduca@chromium.org
Review URL: https://codereview.chromium.org/15650017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203274 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/gpu/gpu_internals_ui.cc')
-rw-r--r-- | content/browser/gpu/gpu_internals_ui.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/content/browser/gpu/gpu_internals_ui.cc b/content/browser/gpu/gpu_internals_ui.cc index 4129125..d628863 100644 --- a/content/browser/gpu/gpu_internals_ui.cc +++ b/content/browser/gpu/gpu_internals_ui.cc @@ -434,8 +434,8 @@ base::Value* GetFeatureStatus() { // Build the problems list. { - base::ListValue* problem_list = - GpuDataManagerImpl::GetInstance()->GetBlacklistReasons(); + base::ListValue* problem_list = new base::ListValue(); + GpuDataManagerImpl::GetInstance()->GetBlacklistReasons(problem_list); if (gpu_access_blocked) { base::DictionaryValue* problem = new base::DictionaryValue(); @@ -460,6 +460,13 @@ base::Value* GetFeatureStatus() { status->Set("problems", problem_list); } + // Build driver bug workaround list. + { + base::ListValue* workaround_list = new base::ListValue(); + GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); + status->Set("workarounds", workaround_list); + } + return status; } @@ -604,6 +611,8 @@ base::Value* GpuMessageHandler::OnRequestClientInfo( dict->SetString("graphics_backend", "Skia"); dict->SetString("blacklist_version", GpuDataManagerImpl::GetInstance()->GetBlacklistVersion()); + dict->SetString("driver_bug_list_version", + GpuDataManagerImpl::GetInstance()->GetDriverBugListVersion()); return dict; } |