| Index: gpu/config/gpu_control_list.h
|
| diff --git a/gpu/config/gpu_control_list.h b/gpu/config/gpu_control_list.h
|
| index 9510a5a01645131e4972de3011d198aa795f9470..bb16657e674417948a7ddfc3062194e8488e1c7e 100644
|
| --- a/gpu/config/gpu_control_list.h
|
| +++ b/gpu/config/gpu_control_list.h
|
| @@ -254,6 +254,21 @@ class GPU_EXPORT GpuControlList {
|
| int value2_;
|
| };
|
|
|
| + class GPU_EXPORT BoolInfo {
|
| + public:
|
| + explicit BoolInfo(const std::string& bool_value);
|
| +
|
| + // Determines if a given int is included in the IntInfo.
|
| + bool Contains(bool value) const;
|
| +
|
| + // Determines if the IntInfo contains valid information.
|
| + bool IsValid() const;
|
| +
|
| + private:
|
| + bool valid_;
|
| + bool value_;
|
| + };
|
| +
|
| class GPU_EXPORT MachineModelInfo {
|
| public:
|
| MachineModelInfo(const std::string& name_op,
|
| @@ -413,6 +428,8 @@ class GPU_EXPORT GpuControlList {
|
| const std::string& int_string,
|
| const std::string& int_string2);
|
|
|
| + bool SetDirectRenderingInfo(const std::string& bool_string);
|
| +
|
| bool SetFeatures(const std::vector<std::string>& features,
|
| const FeatureMap& feature_map,
|
| bool supports_feature_type_all);
|
| @@ -453,6 +470,7 @@ class GPU_EXPORT GpuControlList {
|
| scoped_ptr<FloatInfo> perf_overall_info_;
|
| scoped_ptr<MachineModelInfo> machine_model_info_;
|
| scoped_ptr<IntInfo> gpu_count_info_;
|
| + scoped_ptr<BoolInfo> direct_rendering_info_;
|
| std::set<int> features_;
|
| std::vector<ScopedGpuControlListEntry> exceptions_;
|
| };
|
|
|