| 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 e7b853be989332f216e682c464bde671404bebe7..e343dd9f59388654e2bc39a181ca558082f1aa7e 100644
|
| --- a/gpu/command_buffer/service/feature_info.h
|
| +++ b/gpu/command_buffer/service/feature_info.h
|
| @@ -11,7 +11,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
|
| #include "gpu/command_buffer/service/gles2_cmd_validation.h"
|
| -#include "gpu/config/gpu_driver_bug_workarounds.h"
|
| +#include "gpu/config/gpu_driver_bug_workaround_type.h"
|
| #include "gpu/gpu_export.h"
|
|
|
| namespace base {
|
| @@ -90,15 +90,27 @@
|
| bool ext_read_format_bgra;
|
| };
|
|
|
| + struct Workarounds {
|
| + Workarounds();
|
| +
|
| +#define GPU_OP(type, name) bool name;
|
| + GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP)
|
| +#undef GPU_OP
|
| +
|
| + // Note: 0 here means use driver limit.
|
| + GLint max_texture_size;
|
| + GLint max_cube_map_texture_size;
|
| + GLint max_fragment_uniform_vectors;
|
| + GLint max_varying_vectors;
|
| + GLint max_vertex_uniform_vectors;
|
| + GLint max_copy_texture_chromium_size;
|
| + };
|
| +
|
| + // Constructor with workarounds taken from the current process's CommandLine
|
| FeatureInfo();
|
|
|
| - // Constructor with workarounds taken from the current process's CommandLine
|
| - explicit FeatureInfo(
|
| - const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds);
|
| -
|
| // Constructor with workarounds taken from |command_line|
|
| - FeatureInfo(const base::CommandLine& command_line,
|
| - const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds);
|
| + FeatureInfo(const base::CommandLine& command_line);
|
|
|
| // Initializes the feature information. Needs a current GL context.
|
| bool Initialize(ContextType context_type,
|
| @@ -123,7 +135,9 @@
|
| return feature_flags_;
|
| }
|
|
|
| - const GpuDriverBugWorkarounds& workarounds() const { return workarounds_; }
|
| + const Workarounds& workarounds() const {
|
| + return workarounds_;
|
| + }
|
|
|
| const DisallowedFeatures& disallowed_features() const {
|
| return disallowed_features_;
|
| @@ -174,7 +188,7 @@
|
| FeatureFlags feature_flags_;
|
|
|
| // Flags for Workarounds.
|
| - const GpuDriverBugWorkarounds workarounds_;
|
| + Workarounds workarounds_;
|
|
|
| // Whether the command line switch kEnableUnsafeES3APIs is passed in.
|
| bool enable_unsafe_es3_apis_switch_;
|
|
|