| Index: gpu/command_buffer/service/feature_info.h
|
| diff --git a/gpu/command_buffer/service/feature_info.h b/gpu/command_buffer/service/feature_info.h
|
| index 750c816ad77b31d2205a8517fc6ba238d6893270..c9931138beaf6e854a4d26bad5061dfdb18972af 100644
|
| --- a/gpu/command_buffer/service/feature_info.h
|
| +++ b/gpu/command_buffer/service/feature_info.h
|
| @@ -144,7 +144,15 @@ class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> {
|
| void EnableES3Validators();
|
|
|
| bool IsES3Enabled() const {
|
| - return unsafe_es3_apis_enabled_;
|
| + return es3_apis_enabled_;
|
| + }
|
| +
|
| + void SetES3APIsSwitch(bool enabled) {
|
| + enable_es3_apis_switch_ = enabled;
|
| + }
|
| +
|
| + bool GetES3APIsSwitch() const {
|
| + return enable_es3_apis_switch_;
|
| }
|
|
|
| bool disable_shader_translator() const { return disable_shader_translator_; }
|
| @@ -193,9 +201,10 @@ class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> {
|
| const GpuDriverBugWorkarounds workarounds_;
|
|
|
| // Whether the command line switch kEnableUnsafeES3APIs is passed in.
|
| - bool enable_unsafe_es3_apis_switch_;
|
| + // bool enable_unsafe_es3_apis_switch_;
|
|
|
| - bool unsafe_es3_apis_enabled_;
|
| + bool es3_apis_enabled_;
|
| + bool enable_es3_apis_switch_;
|
|
|
| bool chromium_color_buffer_float_rgba_available_;
|
| bool chromium_color_buffer_float_rgb_available_;
|
|
|