OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUNDS_H_ | |
6 #define GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUNDS_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "build/build_config.h" | |
10 #include "gpu/config/gpu_driver_bug_workaround_type.h" | |
11 #include "gpu/gpu_export.h" | |
12 | |
13 // Forwardly declare a few GL types to avoid including GL header files. | |
14 typedef int GLint; | |
15 | |
16 namespace base { | |
17 class CommandLine; | |
18 } | |
19 | |
20 namespace gpu { | |
21 | |
22 class GPU_EXPORT GpuDriverBugWorkarounds { | |
23 public: | |
24 GpuDriverBugWorkarounds(); | |
25 explicit GpuDriverBugWorkarounds(const base::CommandLine* command_line); | |
26 | |
27 GpuDriverBugWorkarounds(const GpuDriverBugWorkarounds& other); | |
28 | |
29 ~GpuDriverBugWorkarounds(); | |
30 | |
31 #define GPU_OP(type, name) bool name; | |
32 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) | |
33 #undef GPU_OP | |
34 | |
35 // Note: 0 here means use driver limit. | |
36 GLint max_texture_size; | |
37 GLint max_cube_map_texture_size; | |
38 GLint max_fragment_uniform_vectors; | |
39 GLint max_varying_vectors; | |
40 GLint max_vertex_uniform_vectors; | |
41 GLint max_copy_texture_chromium_size; | |
42 }; | |
43 | |
44 } // namespace gpu | |
45 | |
46 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUNDS_H_ | |
OLD | NEW |