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

Side by Side Diff: content/browser/gpu_blacklist.h

Issue 6870004: Usability improvements to about:gpu status (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_GPU_BLACKLIST_H_ 5 #ifndef CONTENT_BROWSER_GPU_BLACKLIST_H_
6 #define CONTENT_BROWSER_GPU_BLACKLIST_H_ 6 #define CONTENT_BROWSER_GPU_BLACKLIST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 // Returns status information on the blacklist. This is two parted: 64 // Returns status information on the blacklist. This is two parted:
65 // { 65 // {
66 // featureStatus: [] 66 // featureStatus: []
67 // problems: [] 67 // problems: []
68 // } 68 // }
69 // 69 //
70 // Each entry in feature_status has: 70 // Each entry in feature_status has:
71 // { 71 // {
72 // name: "name of feature" 72 // name: "name of feature"
73 // status: "enabled" | "unavailable" | "software" | "disabled"; 73 // status: "enabled" | "unavailable_software" | "unavailable_off" |
74 // "software" | "disabled_off" | "disabled_softare";
74 // } 75 // }
75 // 76 //
77 // The features reported are not 1:1 with GpuFeatureType. Rather, they are:
78 // '2d_canvas'
79 // '3d_css'
80 // 'composting',
81 // 'webgl',
82 // 'multisampling'
83 //
76 // Each problems has: 84 // Each problems has:
77 // { 85 // {
78 // "description": "Your GPU is too old", 86 // "description": "Your GPU is too old",
79 // "crBugs": [1234], 87 // "crBugs": [1234],
80 // "webkitBugs": [] 88 // "webkitBugs": []
81 // } 89 // }
82 Value* GetFeatureStatus(bool gpu_access_allowed, 90 Value* GetFeatureStatus(bool gpu_access_allowed,
83 bool disable_accelerated_compositing, 91 bool disable_accelerated_compositing,
84 bool enable_accelerated_2D_canvas, 92 bool enable_accelerated_2D_canvas,
85 bool disable_experimental_webgl, 93 bool disable_experimental_webgl,
86 bool disable_multisampling) const; 94 bool disable_multisampling) const;
87 95
96 bool IsFeatureBlacklisted(GpuFeatureFlags::GpuFeatureType feature) const;
zmo 2011/04/15 17:06:35 Please make this function private. The only publi
97
88 // Return the largest entry id. This is used for histogramming. 98 // Return the largest entry id. This is used for histogramming.
89 uint32 max_entry_id() const; 99 uint32 max_entry_id() const;
90 100
91 // Collects the version of the current blacklist. Returns false and sets 101 // Collects the version of the current blacklist. Returns false and sets
92 // major and minor to 0 on failure. 102 // major and minor to 0 on failure.
93 bool GetVersion(uint16* major, uint16* monir) const; 103 bool GetVersion(uint16* major, uint16* monir) const;
94 104
95 // Collects the version of the current blacklist from a parsed json file. 105 // Collects the version of the current blacklist from a parsed json file.
96 // Returns false and sets major and minor to 0 on failure. 106 // Returns false and sets major and minor to 0 on failure.
97 static bool GetVersion( 107 static bool GetVersion(
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 // user machine. It is updated everytime DetermineGpuFeatureFlags() is 295 // user machine. It is updated everytime DetermineGpuFeatureFlags() is
286 // called and is used later by GetGpuFeatureFlagEntries(). 296 // called and is used later by GetGpuFeatureFlagEntries().
287 std::vector<GpuBlacklistEntry*> active_entries_; 297 std::vector<GpuBlacklistEntry*> active_entries_;
288 298
289 uint32 max_entry_id_; 299 uint32 max_entry_id_;
290 300
291 DISALLOW_COPY_AND_ASSIGN(GpuBlacklist); 301 DISALLOW_COPY_AND_ASSIGN(GpuBlacklist);
292 }; 302 };
293 303
294 #endif // CONTENT_BROWSER_GPU_BLACKLIST_H_ 304 #endif // CONTENT_BROWSER_GPU_BLACKLIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698