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

Unified Diff: gpu/config/gpu_feature_info.h

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: rebase Created 3 years, 10 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
Index: gpu/config/gpu_feature_info.h
diff --git a/gpu/config/gpu_feature_info.h b/gpu/config/gpu_feature_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..a48679d65c4638cd1b1d359af5aa5bc7c4182027
--- /dev/null
+++ b/gpu/config/gpu_feature_info.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef GPU_CONFIG_GPU_FEATURE_INFO_H_
+#define GPU_CONFIG_GPU_FEATURE_INFO_H_
+
+#include <vector>
+
+#include "gpu/config/gpu_feature_type.h"
+
+namespace gpu {
+
+// Flags indicating the status of a GPU feature (see gpu_feature_type.h).
+enum GpuFeatureStatus {
+ kGpuFeatureStatusEnabled,
+ kGpuFeatureStatusBlacklisted,
+ kGpuFeatureStatusDisabled,
+ kGpuFeatureStatusUndefined,
+ kGpuFeatureStatusMax
dcheng 2017/02/07 00:58:22 kGpuFeatureStatusMax = kGpuFeatureStatusUndefined
ericrk 2017/02/08 21:29:46 Makes sense - switched this to a fixed-size array.
+};
+
+// A vector of GpuFeatureStatus values, one per GpuFeatureType. By default, all
+// features are disabled.
+struct GpuFeatureInfo {
+ GpuFeatureInfo()
+ : status_values(NUMBER_OF_GPU_FEATURE_TYPES, kGpuFeatureStatusUndefined) {
+ }
+ std::vector<GpuFeatureStatus> status_values;
+};
+
+} // namespace gpu
+
+#endif // GPU_CONFIG_GPU_FEATURE_INFO_H_
« no previous file with comments | « gpu/config/BUILD.gn ('k') | gpu/config/gpu_finch_features.h » ('j') | gpu/config/gpu_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698