diff options
author | gab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-23 22:23:47 +0000 |
---|---|---|
committer | gab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-23 22:23:47 +0000 |
commit | db404666d529da4446fb5cc5a183ada1979bb6a6 (patch) | |
tree | c83c28f461633c00465f335dd08e04b813bb75c9 /gpu/config/gpu_control_list.h | |
parent | bc882ddd33cc25ac5e68dd5b042cc6f836a57c74 (diff) | |
download | chromium_src-db404666d529da4446fb5cc5a183ada1979bb6a6.zip chromium_src-db404666d529da4446fb5cc5a183ada1979bb6a6.tar.gz chromium_src-db404666d529da4446fb5cc5a183ada1979bb6a6.tar.bz2 |
Enable GPU control lists in tests.
Reland of https://codereview.chromium.org/23534006/ (see that and the bug for more details).
Also adding INFO-level logging to spell out each control list rule being applied on the bots (makes debugging and understanding failures much easier).
R=piman@chromium.org
TBR=jcivelli, piman, zmo
BUG=295799
Review URL: https://codereview.chromium.org/23703017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224810 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/config/gpu_control_list.h')
-rw-r--r-- | gpu/config/gpu_control_list.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gpu/config/gpu_control_list.h b/gpu/config/gpu_control_list.h index ced3b52..29a5f77 100644 --- a/gpu/config/gpu_control_list.h +++ b/gpu/config/gpu_control_list.h @@ -93,6 +93,13 @@ class GPU_EXPORT GpuControlList { // Register whether "all" is recognized as all features. void set_supports_feature_type_all(bool supported); + // Enables logging of control list decisions. + void enable_control_list_logging( + const std::string& control_list_logging_name) { + control_list_logging_enabled_ = true; + control_list_logging_name_ = control_list_logging_name; + } + private: friend class GpuControlListEntryTest; friend class MachineModelInfoTest; @@ -289,6 +296,11 @@ class GPU_EXPORT GpuControlList { const FeatureMap& feature_map, bool supports_feature_type_all); + // Logs a control list match for this rule in the list identified by + // |control_list_logging_name|. + void LogControlListMatch( + const std::string& control_list_logging_name) const; + // Determines if a given os/gc/machine_model/driver is included in the // Entry set. bool Contains(OsType os_type, const std::string& os_version, @@ -479,6 +491,9 @@ class GPU_EXPORT GpuControlList { // The features a GpuControlList recognizes and handles. FeatureMap feature_map_; bool supports_feature_type_all_; + + bool control_list_logging_enabled_; + std::string control_list_logging_name_; }; } // namespace gpu |