Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef GPU_CONFIG_GPU_FEATURE_INFO_H_ | |
| 6 #define GPU_CONFIG_GPU_FEATURE_INFO_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "gpu/config/gpu_feature_type.h" | |
| 11 | |
| 12 namespace gpu { | |
| 13 | |
| 14 // Flags indicating the status of a GPU feature (see gpu_feature_type.h). | |
| 15 enum GpuFeatureStatus { | |
| 16 kGpuFeatureStatusEnabled, | |
| 17 kGpuFeatureStatusBlacklisted, | |
| 18 kGpuFeatureStatusDisabled, | |
| 19 kGpuFeatureStatusUndefined, | |
| 20 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.
| |
| 21 }; | |
| 22 | |
| 23 // A vector of GpuFeatureStatus values, one per GpuFeatureType. By default, all | |
| 24 // features are disabled. | |
| 25 struct GpuFeatureInfo { | |
| 26 GpuFeatureInfo() | |
| 27 : status_values(NUMBER_OF_GPU_FEATURE_TYPES, kGpuFeatureStatusUndefined) { | |
| 28 } | |
| 29 std::vector<GpuFeatureStatus> status_values; | |
| 30 }; | |
| 31 | |
| 32 } // namespace gpu | |
| 33 | |
| 34 #endif // GPU_CONFIG_GPU_FEATURE_INFO_H_ | |
| OLD | NEW |