OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUNDS_H_ | 5 #ifndef GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUNDS_H_ |
6 #define GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUNDS_H_ | 6 #define GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUNDS_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "gpu/config/gpu_driver_bug_workaround_type.h" | 10 #include "gpu/config/gpu_driver_bug_workaround_type.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 GpuDriverBugWorkarounds(const GpuDriverBugWorkarounds& other); | 27 GpuDriverBugWorkarounds(const GpuDriverBugWorkarounds& other); |
28 | 28 |
29 ~GpuDriverBugWorkarounds(); | 29 ~GpuDriverBugWorkarounds(); |
30 | 30 |
31 #define GPU_OP(type, name) bool name; | 31 #define GPU_OP(type, name) bool name; |
32 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) | 32 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) |
33 #undef GPU_OP | 33 #undef GPU_OP |
34 | 34 |
35 // Note: 0 here means use driver limit. | 35 // Note: 0 here means use driver limit. |
36 GLint max_texture_size; | 36 GLint max_texture_size; |
37 GLint max_cube_map_texture_size; | |
38 GLint max_fragment_uniform_vectors; | 37 GLint max_fragment_uniform_vectors; |
39 GLint max_varying_vectors; | 38 GLint max_varying_vectors; |
40 GLint max_vertex_uniform_vectors; | 39 GLint max_vertex_uniform_vectors; |
41 GLint max_copy_texture_chromium_size; | 40 GLint max_copy_texture_chromium_size; |
42 }; | 41 }; |
43 | 42 |
44 } // namespace gpu | 43 } // namespace gpu |
45 | 44 |
46 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUNDS_H_ | 45 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUNDS_H_ |
OLD | NEW |