OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 bool angle_translated_shader_source; | 35 bool angle_translated_shader_source; |
36 bool angle_pack_reverse_row_order; | 36 bool angle_pack_reverse_row_order; |
37 bool arb_texture_rectangle; | 37 bool arb_texture_rectangle; |
38 bool angle_instanced_arrays; | 38 bool angle_instanced_arrays; |
39 bool occlusion_query_boolean; | 39 bool occlusion_query_boolean; |
40 bool use_arb_occlusion_query2_for_occlusion_query_boolean; | 40 bool use_arb_occlusion_query2_for_occlusion_query_boolean; |
41 bool use_arb_occlusion_query_for_occlusion_query_boolean; | 41 bool use_arb_occlusion_query_for_occlusion_query_boolean; |
42 bool native_vertex_array_object; | 42 bool native_vertex_array_object; |
43 bool disable_workarounds; | 43 bool disable_workarounds; |
44 bool enable_shader_name_hashing; | 44 bool enable_shader_name_hashing; |
45 bool enable_virtual_context; | |
46 }; | 45 }; |
47 | 46 |
48 struct Workarounds { | 47 struct Workarounds { |
49 Workarounds(); | 48 Workarounds(); |
50 | 49 |
51 bool clear_alpha_in_readpixels; | 50 bool clear_alpha_in_readpixels; |
52 bool clear_uniforms_before_program_use; | 51 bool clear_uniforms_before_program_use; |
53 bool needs_glsl_built_in_function_emulation; | 52 bool needs_glsl_built_in_function_emulation; |
54 bool needs_offscreen_buffer_workaround; | 53 bool needs_offscreen_buffer_workaround; |
55 bool reverse_point_sprite_coord_origin; | 54 bool reverse_point_sprite_coord_origin; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // Flags for Workarounds. | 115 // Flags for Workarounds. |
117 Workarounds workarounds_; | 116 Workarounds workarounds_; |
118 | 117 |
119 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 118 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
120 }; | 119 }; |
121 | 120 |
122 } // namespace gles2 | 121 } // namespace gles2 |
123 } // namespace gpu | 122 } // namespace gpu |
124 | 123 |
125 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 124 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
OLD | NEW |