diff options
author | nduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-12 18:17:40 +0000 |
---|---|---|
committer | nduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-12 18:17:40 +0000 |
commit | 7a1332522d6569f5edeced8c767b438590b76367 (patch) | |
tree | a26d732fcaf8be69b372d632ade23da2d315fe3a /content/browser/gpu_blacklist.h | |
parent | be58795d0c347769c7b18d992ef6b029d4cef747 (diff) | |
download | chromium_src-7a1332522d6569f5edeced8c767b438590b76367.zip chromium_src-7a1332522d6569f5edeced8c767b438590b76367.tar.gz chromium_src-7a1332522d6569f5edeced8c767b438590b76367.tar.bz2 |
Implement easy GPU feature status summary.
The associated bug shows screenshots of about:gpu with this cl applied.
BUG=75719
Review URL: http://codereview.chromium.org/6712048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81273 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/gpu_blacklist.h')
-rw-r--r-- | content/browser/gpu_blacklist.h | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/content/browser/gpu_blacklist.h b/content/browser/gpu_blacklist.h index 54bc9d2..c2f8536 100644 --- a/content/browser/gpu_blacklist.h +++ b/content/browser/gpu_blacklist.h @@ -61,15 +61,29 @@ class GpuBlacklist { std::vector<uint32>& entry_ids) const; - // Returns an array of entries, each entry of which has - // description, cr_bugs, and webkit_bugs explaining reason for - // blacklisting, e.g.: - // [{ + // Returns status information on the blacklist. This is two parted: + // { + // featureStatus: [] + // problems: [] + // } + // + // Each entry in feature_status has: + // { + // name: "name of feature" + // status: "enabled" | "unavailable" | "software" | "disabled"; + // } + // + // Each problems has: + // { // "description": "Your GPU is too old", - // "cr_bugs": [1234], - // "webkit_bugs": [] - // }] - Value* GetBlacklistingReasons() const; + // "crBugs": [1234], + // "webkitBugs": [] + // } + Value* GetFeatureStatus(bool gpu_access_allowed, + bool disable_accelerated_compositing, + bool enable_accelerated_2D_canvas, + bool disable_experimental_webgl, + bool disable_multisampling) const; // Return the largest entry id. This is used for histogramming. uint32 max_entry_id() const; |