| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_WORKAROUND_TYPE_H_ | 5 #ifndef GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ |
| 6 #define GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ | 6 #define GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "gpu/gpu_export.h" | 10 #include "gpu/gpu_export.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 GPU_OP(INIT_VARYINGS_WITHOUT_STATIC_USE, \ | 55 GPU_OP(INIT_VARYINGS_WITHOUT_STATIC_USE, \ |
| 56 init_varyings_without_static_use) \ | 56 init_varyings_without_static_use) \ |
| 57 GPU_OP(INIT_VERTEX_ATTRIBUTES, \ | 57 GPU_OP(INIT_VERTEX_ATTRIBUTES, \ |
| 58 init_vertex_attributes) \ | 58 init_vertex_attributes) \ |
| 59 GPU_OP(MAX_CUBE_MAP_TEXTURE_SIZE_LIMIT_1024, \ | 59 GPU_OP(MAX_CUBE_MAP_TEXTURE_SIZE_LIMIT_1024, \ |
| 60 max_cube_map_texture_size_limit_1024) \ | 60 max_cube_map_texture_size_limit_1024) \ |
| 61 GPU_OP(MAX_CUBE_MAP_TEXTURE_SIZE_LIMIT_4096, \ | 61 GPU_OP(MAX_CUBE_MAP_TEXTURE_SIZE_LIMIT_4096, \ |
| 62 max_cube_map_texture_size_limit_4096) \ | 62 max_cube_map_texture_size_limit_4096) \ |
| 63 GPU_OP(MAX_CUBE_MAP_TEXTURE_SIZE_LIMIT_512, \ | 63 GPU_OP(MAX_CUBE_MAP_TEXTURE_SIZE_LIMIT_512, \ |
| 64 max_cube_map_texture_size_limit_512) \ | 64 max_cube_map_texture_size_limit_512) \ |
| 65 GPU_OP(MAX_FRAGMENT_UNIFORM_VECTORS_32, \ |
| 66 max_fragment_uniform_vectors_32) \ |
| 65 GPU_OP(MAX_TEXTURE_SIZE_LIMIT_4096, \ | 67 GPU_OP(MAX_TEXTURE_SIZE_LIMIT_4096, \ |
| 66 max_texture_size_limit_4096) \ | 68 max_texture_size_limit_4096) \ |
| 69 GPU_OP(MAX_VARYING_VECTORS_16, \ |
| 70 max_varying_vectors_16) \ |
| 71 GPU_OP(MAX_VERTEX_UNIFORM_VECTORS_256, \ |
| 72 max_vertex_uniform_vectors_256) \ |
| 67 GPU_OP(NEEDS_GLSL_BUILT_IN_FUNCTION_EMULATION, \ | 73 GPU_OP(NEEDS_GLSL_BUILT_IN_FUNCTION_EMULATION, \ |
| 68 needs_glsl_built_in_function_emulation) \ | 74 needs_glsl_built_in_function_emulation) \ |
| 69 GPU_OP(NEEDS_OFFSCREEN_BUFFER_WORKAROUND, \ | 75 GPU_OP(NEEDS_OFFSCREEN_BUFFER_WORKAROUND, \ |
| 70 needs_offscreen_buffer_workaround) \ | 76 needs_offscreen_buffer_workaround) \ |
| 71 GPU_OP(RELEASE_IMAGE_AFTER_USE, \ | 77 GPU_OP(RELEASE_IMAGE_AFTER_USE, \ |
| 72 release_image_after_use) \ | 78 release_image_after_use) \ |
| 73 GPU_OP(RESTORE_SCISSOR_ON_FBO_CHANGE, \ | 79 GPU_OP(RESTORE_SCISSOR_ON_FBO_CHANGE, \ |
| 74 restore_scissor_on_fbo_change) \ | 80 restore_scissor_on_fbo_change) \ |
| 75 GPU_OP(REVERSE_POINT_SPRITE_COORD_ORIGIN, \ | 81 GPU_OP(REVERSE_POINT_SPRITE_COORD_ORIGIN, \ |
| 76 reverse_point_sprite_coord_origin) \ | 82 reverse_point_sprite_coord_origin) \ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 #undef GPU_OP | 114 #undef GPU_OP |
| 109 NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES | 115 NUMBER_OF_GPU_DRIVER_BUG_WORKAROUND_TYPES |
| 110 }; | 116 }; |
| 111 | 117 |
| 112 GPU_EXPORT std::string GpuDriverBugWorkaroundTypeToString( | 118 GPU_EXPORT std::string GpuDriverBugWorkaroundTypeToString( |
| 113 GpuDriverBugWorkaroundType type); | 119 GpuDriverBugWorkaroundType type); |
| 114 | 120 |
| 115 } // namespace gpu | 121 } // namespace gpu |
| 116 | 122 |
| 117 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ | 123 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUND_TYPE_H_ |
| OLD | NEW |