summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authortapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-14 05:35:47 +0000
committertapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-14 05:35:47 +0000
commitb260e76487a755b39f54d633649557c5d30b64e8 (patch)
treee4e5fd9642d10c2345a9b4fafdc6ae91d3b7c279 /gpu
parent8667d8701a62a2096759cc9c2bbb50db07918a9b (diff)
downloadchromium_src-b260e76487a755b39f54d633649557c5d30b64e8.zip
chromium_src-b260e76487a755b39f54d633649557c5d30b64e8.tar.gz
chromium_src-b260e76487a755b39f54d633649557c5d30b64e8.tar.bz2
Revert 228401 "Enable GPU control lists in tests."
I'm sorry Mr CL, but you may have broken ImageTransportFactoryBrowserTest.TestLostContext in a sticky way on the XP and Vista waterfall bots. Win7 still likes you. Problems started at builders: http://build.chromium.org/p/chromium.win/builders/XP%20Tests%20%281%29/builds/28514 http://build.chromium.org/p/chromium.win/builders/XP%20Tests%20%28dbg%29%282%29/builds/33745 http://build.chromium.org/p/chromium.win/builders/Vista%20Tests%20%281%29/builds/41163 Reverting & monitoring to narrow down the problem space. > 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 > > Previously Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224810 > Reverted: https://src.chromium.org/viewvc/chrome?view=rev&revision=224845 > > Previously Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=227977 > Reverted: https://src.chromium.org/viewvc/chrome?view=rev&revision=228014 > > Review URL: https://codereview.chromium.org/23703017 TBR=gab@chromium.org Review URL: https://codereview.chromium.org/27138003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228431 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r--gpu/config/gpu_control_list.cc14
-rw-r--r--gpu/config/gpu_control_list.h15
-rw-r--r--gpu/config/software_rendering_list_json.cc42
3 files changed, 5 insertions, 66 deletions
diff --git a/gpu/config/gpu_control_list.cc b/gpu/config/gpu_control_list.cc
index 0c645b5..1d45d72 100644
--- a/gpu/config/gpu_control_list.cc
+++ b/gpu/config/gpu_control_list.cc
@@ -10,7 +10,6 @@
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
-#include "base/strings/stringprintf.h"
#include "base/sys_info.h"
#include "gpu/config/gpu_info.h"
#include "gpu/config/gpu_util.h"
@@ -1031,14 +1030,6 @@ GpuControlList::GpuControlListEntry::StringToMultiGpuCategory(
return kMultiGpuCategoryNone;
}
-void GpuControlList::GpuControlListEntry::LogControlListMatch(
- const std::string& control_list_logging_name) const {
- static const char kControlListMatchMessage[] =
- "Control list match for rule #%u in %s.";
- LOG(INFO) << base::StringPrintf(kControlListMatchMessage, id_,
- control_list_logging_name.c_str());
-}
-
bool GpuControlList::GpuControlListEntry::Contains(
OsType os_type, const std::string& os_version,
const GPUInfo& gpu_info) const {
@@ -1194,8 +1185,7 @@ bool GpuControlList::GpuControlListEntry::StringToFeature(
GpuControlList::GpuControlList()
: max_entry_id_(0),
needs_more_info_(false),
- supports_feature_type_all_(false),
- control_list_logging_enabled_(false) {
+ supports_feature_type_all_(false) {
}
GpuControlList::~GpuControlList() {
@@ -1302,8 +1292,6 @@ std::set<int> GpuControlList::MakeDecision(
for (size_t i = 0; i < entries_.size(); ++i) {
if (entries_[i]->Contains(os, os_version, gpu_info)) {
if (!entries_[i]->disabled()) {
- if (control_list_logging_enabled_)
- entries_[i]->LogControlListMatch(control_list_logging_name_);
MergeFeatureSets(&possible_features, entries_[i]->features());
if (!entries_[i]->NeedsMoreInfo(gpu_info))
MergeFeatureSets(&features, entries_[i]->features());
diff --git a/gpu/config/gpu_control_list.h b/gpu/config/gpu_control_list.h
index 29a5f77..ced3b52 100644
--- a/gpu/config/gpu_control_list.h
+++ b/gpu/config/gpu_control_list.h
@@ -93,13 +93,6 @@ 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;
@@ -296,11 +289,6 @@ 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,
@@ -491,9 +479,6 @@ 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
diff --git a/gpu/config/software_rendering_list_json.cc b/gpu/config/software_rendering_list_json.cc
index a454ded..ae2b4a0 100644
--- a/gpu/config/software_rendering_list_json.cc
+++ b/gpu/config/software_rendering_list_json.cc
@@ -18,7 +18,7 @@ const char kSoftwareRenderingListJson[] = LONG_STRING_CONST(
{
"name": "software rendering list",
// Please update the version number whenever you change this file.
- "version": "6.12",
+ "version": "6.11",
"entries": [
{
"id": 1,
@@ -138,12 +138,6 @@ const char kSoftwareRenderingListJson[] = LONG_STRING_CONST(
"op": ">=",
"value": "7.15.10.1624"
}
- },
- {
- "driver_vendor": {
- "op": "=",
- "value": "osmesa"
- }
}
],
"features": [
@@ -335,14 +329,6 @@ const char kSoftwareRenderingListJson[] = LONG_STRING_CONST(
"op": "<",
"value": "7.11"
},
- "exceptions": [
- {
- "driver_vendor": {
- "op": "=",
- "value": "osmesa"
- }
- }
- ],
"features": [
"all"
]
@@ -780,12 +766,6 @@ const char kSoftwareRenderingListJson[] = LONG_STRING_CONST(
"op": ">=",
"value": "7.15.10.1624"
}
- },
- {
- "driver_vendor": {
- "op": "=",
- "value": "osmesa"
- }
}
],
"features": [
@@ -1089,8 +1069,6 @@ const char kSoftwareRenderingListJson[] = LONG_STRING_CONST(
"all"
]
},
-) // String split to avoid MSVC char limit.
-LONG_STRING_CONST(
{
"id": 75,
"description": "Texture sharing not supported on AMD Switchable GPUs due to driver issues",
@@ -1103,6 +1081,8 @@ LONG_STRING_CONST(
"texture_sharing"
]
},
+) // String split to avoid MSVC char limit.
+LONG_STRING_CONST(
{
"id": 76,
"description": "WebGL is disabled on Android unless GPU reset notification is supported",
@@ -1154,21 +1134,6 @@ LONG_STRING_CONST(
"features": [
"accelerated_video_decode"
]
- },
- {
- "id": 79,
- "description": "Disable force compositing mode on all Windows versions prior to Vista.",
- "cr_bugs": [273920],
- "os": {
- "type": "win",
- "version": {
- "op": "<",
- "value": "6.0"
- }
- },
- "features": [
- "force_compositing_mode"
- ]
}
]
}
@@ -1176,3 +1141,4 @@ LONG_STRING_CONST(
); // LONG_STRING_CONST macro
} // namespace gpu
+