Commit 7205054e authored by epoger@chromium.org's avatar epoger@chromium.org

Add "Graphics backend" line to chrome://gpu-internals page, indicating whether

Skia is being used or not.
Review URL: http://codereview.chromium.org/8430001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107987 0039d316-1c4b-4281-b951-d872f2087c98
parent 70f2bae6
...@@ -61,6 +61,10 @@ cr.define('gpu', function() { ...@@ -61,6 +61,10 @@ cr.define('gpu', function() {
{ {
description: 'ANGLE revision', description: 'ANGLE revision',
value: clientInfo.angle_revision value: clientInfo.angle_revision
},
{
description: '2D graphics backend',
value: clientInfo.graphics_backend
}]); }]);
} else { } else {
this.setText_('client-info', '... loading...'); this.setText_('client-info', '... loading...');
......
...@@ -210,6 +210,11 @@ Value* GpuMessageHandler::OnRequestClientInfo(const ListValue* list) { ...@@ -210,6 +210,11 @@ Value* GpuMessageHandler::OnRequestClientInfo(const ListValue* list) {
base::SysInfo::OperatingSystemName() + " " + base::SysInfo::OperatingSystemName() + " " +
base::SysInfo::OperatingSystemVersion()); base::SysInfo::OperatingSystemVersion());
dict->SetString("angle_revision", base::UintToString(BUILD_REVISION)); dict->SetString("angle_revision", base::UintToString(BUILD_REVISION));
#if defined(USE_SKIA)
dict->SetString("graphics_backend", "Skia");
#else
dict->SetString("graphics_backend", "Core Graphics");
#endif
dict->SetString("blacklist_version", dict->SetString("blacklist_version",
GpuDataManager::GetInstance()->GetBlacklistVersion()); GpuDataManager::GetInstance()->GetBlacklistVersion());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment