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

Unified Diff: content/browser/gpu/gpu_data_manager.h

Issue 7967020: Implement --use-gl=any (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « content/browser/gpu/gpu_blacklist.cc ('k') | content/browser/gpu/gpu_data_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_data_manager.h
===================================================================
--- content/browser/gpu/gpu_data_manager.h (revision 102410)
+++ content/browser/gpu/gpu_data_manager.h (working copy)
@@ -35,9 +35,34 @@
const GPUInfo& gpu_info() const;
- // Returns status of various GPU features. Return type is
- // GpuBlacklist::GetFeatureStatus, or NULL if blacklist is
- // uninitialized. Caller is responsible for deleting the returned value.
+ // Returns status of various GPU features. This is two parted:
+ // {
+ // featureStatus: []
+ // problems: []
+ // }
+ //
+ // Each entry in feature_status has:
+ // {
+ // name: "name of feature"
+ // status: "enabled" | "unavailable_software" | "unavailable_off" |
+ // "software" | "disabled_off" | "disabled_softare";
+ // }
+ //
+ // The features reported are not 1:1 with GpuFeatureType. Rather, they are:
+ // '2d_canvas'
+ // '3d_css'
+ // 'composting',
+ // 'webgl',
+ // 'multisampling'
+ //
+ // Each problems has:
+ // {
+ // "description": "Your GPU is too old",
+ // "crBugs": [1234],
+ // "webkitBugs": []
+ // }
+ //
+ // Caller is responsible for deleting the returned value.
Value* GetFeatureStatus();
std::string GetBlacklistVersion() const;
@@ -68,6 +93,10 @@
// in correspondance to preliminary gpu feature flags.
void AppendRendererCommandLine(CommandLine* command_line);
+ // Inserting switches into gpu process command-line: kUseGL,
+ // kDisableGLMultisampling.
+ void AppendGpuCommandLine(CommandLine* command_line);
+
// Gives ownership of the built-in blacklist. This is always called on the
// UI thread.
void SetBuiltInGpuBlacklist(GpuBlacklist* built_in_list);
« no previous file with comments | « content/browser/gpu/gpu_blacklist.cc ('k') | content/browser/gpu/gpu_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698