Chromium Code Reviews| 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..cb3d11193ae8d054fa0ca2ea87256ce66fb5e6b1 |
| --- /dev/null |
| +++ b/gpu/config/gpu_feature_info.h |
| @@ -0,0 +1,33 @@ |
| +// 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 <array> |
|
dcheng
2017/02/08 22:33:11
Nit: Not used?
ericrk
2017/02/10 19:27:46
removed.
|
| + |
| +#include "gpu/config/gpu_feature_type.h" |
| +#include "gpu/gpu_export.h" |
| + |
| +namespace gpu { |
| + |
| +// Flags indicating the status of a GPU feature (see gpu_feature_type.h). |
| +enum GpuFeatureStatus { |
| + kGpuFeatureStatusEnabled, |
| + kGpuFeatureStatusBlacklisted, |
| + kGpuFeatureStatusDisabled, |
| + kGpuFeatureStatusUndefined, |
| + kGpuFeatureStatusMax |
| +}; |
| + |
| +// A vector of GpuFeatureStatus values, one per GpuFeatureType. By default, all |
| +// features are disabled. |
| +struct GPU_EXPORT GpuFeatureInfo { |
| + GpuFeatureInfo(); |
| + GpuFeatureStatus status_values[NUMBER_OF_GPU_FEATURE_TYPES]; |
| +}; |
| + |
| +} // namespace gpu |
| + |
| +#endif // GPU_CONFIG_GPU_FEATURE_INFO_H_ |