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

Unified Diff: content/browser/gpu/gpu_blacklist.cc

Issue 7523019: Include accelerated_compositing disable flag in about:gpu status (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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 | « chrome/browser/resources/gpu_internals/info_view.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_blacklist.cc
diff --git a/content/browser/gpu/gpu_blacklist.cc b/content/browser/gpu/gpu_blacklist.cc
index f0c4413a7670ed7ad10b9073eaa10991c0446724..7b7e06788ed73dd3e663dab66f36eb3ef85f15f1 100644
--- a/content/browser/gpu/gpu_blacklist.cc
+++ b/content/browser/gpu/gpu_blacklist.cc
@@ -746,6 +746,9 @@ Value* GpuBlacklist::GetFeatureStatus(bool gpu_access_allowed,
GpuFeatureFlags::kGpuFeatureAccelerated2dCanvas))
feature_status_list->Append(NewStatusValue("2d_canvas",
"unavailable_software"));
+ else if (disable_accelerated_compositing)
+ feature_status_list->Append(NewStatusValue("2d_canvas",
+ "disabled_software"));
else
feature_status_list->Append(NewStatusValue("2d_canvas",
"enabled"));
@@ -789,6 +792,9 @@ Value* GpuBlacklist::GetFeatureStatus(bool gpu_access_allowed,
GpuFeatureFlags::kGpuFeatureWebgl))
feature_status_list->Append(NewStatusValue("webgl",
"unavailable_off"));
+ else if (disable_accelerated_compositing)
Ken Russell (switch to Gerrit) 2011/07/30 01:06:51 I'm not sure this is correct. Currently if --disab
+ feature_status_list->Append(NewStatusValue("webgl",
+ "unavailable_off"));
else
feature_status_list->Append(NewStatusValue("webgl",
"enabled"));
@@ -804,6 +810,9 @@ Value* GpuBlacklist::GetFeatureStatus(bool gpu_access_allowed,
GpuFeatureFlags::kGpuFeatureMultisampling))
feature_status_list->Append(NewStatusValue("multisampling",
"disabled_off"));
+ else if (disable_accelerated_compositing)
+ feature_status_list->Append(NewStatusValue("multisampling",
+ "unavailable_off"));
Ken Russell (switch to Gerrit) 2011/07/30 01:06:51 I'm also not sure this one is correct. I'm pretty
else
feature_status_list->Append(NewStatusValue("multisampling",
"enabled"));
@@ -834,7 +843,7 @@ Value* GpuBlacklist::GetFeatureStatus(bool gpu_access_allowed,
DictionaryValue* problem = new DictionaryValue();
problem->SetString("description",
"Accelerated compositing has been disabled, either via about:flags "
- "or command line");
+ "or command line. This disables all hardware acceleration.");
Ken Russell (switch to Gerrit) 2011/07/30 01:06:51 Not sure this comment is correct either. It really
problem->Set("crBugs", new ListValue());
problem->Set("webkitBugs", new ListValue());
problem_list->Append(problem);
« no previous file with comments | « chrome/browser/resources/gpu_internals/info_view.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698