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

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

Issue 10908110: Move gpu blacklist to content side. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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_data_manager_impl_unittest.cc ('k') | content/browser/gpu/gpu_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_util.h
===================================================================
--- content/browser/gpu/gpu_util.h (revision 154773)
+++ content/browser/gpu/gpu_util.h (working copy)
@@ -2,17 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_GPU_UTIL_H_
-#define CHROME_BROWSER_GPU_UTIL_H_
+#ifndef CONTENT_BROWSER_GPU_GPU_UTIL_H_
+#define CONTENT_BROWSER_GPU_GPU_UTIL_H_
#include <string>
+#include "base/basictypes.h"
+#include "build/build_config.h"
+#include "content/common/content_export.h"
#include "content/public/common/gpu_feature_type.h"
-namespace base {
-class DictionaryValue;
-class Value;
-}
+class GpuBlacklist;
namespace gpu_util {
@@ -22,57 +22,20 @@
// "accelerated_compositing"
// "webgl"
// "multisampling"
-content::GpuFeatureType StringToGpuFeatureType(
+CONTENT_EXPORT content::GpuFeatureType StringToGpuFeatureType(
const std::string& feature_string);
// Gets a string version of a feature type for use in about:gpu. Will yield
// strings from StringToGpuFeatureType, e.g.
// GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS becomes "accelerated_2d_canvas"
-std::string GpuFeatureTypeToString(content::GpuFeatureType feature);
+CONTENT_EXPORT std::string GpuFeatureTypeToString(
+ content::GpuFeatureType feature);
-// 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',
-// 'flash_3d',
-// 'flash_stage3d',
-// 'texture_sharing'
-// 'video_decode'
-//
-// Each problems has:
-// {
-// "description": "Your GPU is too old",
-// "crBugs": [1234],
-// "webkitBugs": []
-// }
-//
-// Caller is responsible for deleting the returned value.
-base::Value* GetFeatureStatus();
-
-// Returns the GpuInfo as a DictionaryValue.
-base::DictionaryValue* GpuInfoAsDictionaryValue();
-
// Send UMA histograms about the enabled features.
-void UpdateStats();
+CONTENT_EXPORT void UpdateStats(
+ const GpuBlacklist* blacklist, uint32 blacklisted_features);
-// Sets up force-compositing-mode and threaded compositing field trials.
-void InitializeCompositingFieldTrial();
-
} // namespace gpu_util
-#endif // CHROME_BROWSER_GPU_UTIL_H_
+#endif // CONTENT_BROWSER_GPU_GPU_UTIL_H_
+
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_unittest.cc ('k') | content/browser/gpu/gpu_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698