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/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 10 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 oes_egl_image_external(false), | 26 oes_egl_image_external(false), |
27 npot_ok(false), | 27 npot_ok(false), |
28 enable_texture_float_linear(false), | 28 enable_texture_float_linear(false), |
29 enable_texture_half_float_linear(false), | 29 enable_texture_half_float_linear(false), |
30 chromium_webglsl(false), | 30 chromium_webglsl(false), |
31 chromium_stream_texture(false), | 31 chromium_stream_texture(false), |
32 angle_translated_shader_source(false), | 32 angle_translated_shader_source(false), |
33 angle_pack_reverse_row_order(false), | 33 angle_pack_reverse_row_order(false), |
34 arb_texture_rectangle(false), | 34 arb_texture_rectangle(false), |
35 angle_instanced_arrays(false), | 35 angle_instanced_arrays(false), |
36 occlusion_query_boolean(false) { | 36 occlusion_query_boolean(false), |
| 37 use_arb_occlusion_query2_for_occlusion_query_boolean(false) { |
37 } | 38 } |
38 | 39 |
39 bool chromium_framebuffer_multisample; | 40 bool chromium_framebuffer_multisample; |
40 bool oes_standard_derivatives; | 41 bool oes_standard_derivatives; |
41 bool oes_egl_image_external; | 42 bool oes_egl_image_external; |
42 bool npot_ok; | 43 bool npot_ok; |
43 bool enable_texture_float_linear; | 44 bool enable_texture_float_linear; |
44 bool enable_texture_half_float_linear; | 45 bool enable_texture_half_float_linear; |
45 bool chromium_webglsl; | 46 bool chromium_webglsl; |
46 bool chromium_stream_texture; | 47 bool chromium_stream_texture; |
47 bool angle_translated_shader_source; | 48 bool angle_translated_shader_source; |
48 bool angle_pack_reverse_row_order; | 49 bool angle_pack_reverse_row_order; |
49 bool arb_texture_rectangle; | 50 bool arb_texture_rectangle; |
50 bool angle_instanced_arrays; | 51 bool angle_instanced_arrays; |
51 bool occlusion_query_boolean; | 52 bool occlusion_query_boolean; |
| 53 bool use_arb_occlusion_query2_for_occlusion_query_boolean; |
52 }; | 54 }; |
53 | 55 |
54 FeatureInfo(); | 56 FeatureInfo(); |
55 ~FeatureInfo(); | 57 ~FeatureInfo(); |
56 | 58 |
57 // If allowed features = NULL or "*", all features are allowed. Otherwise | 59 // If allowed features = NULL or "*", all features are allowed. Otherwise |
58 // only features that match the strings in allowed_features are allowed. | 60 // only features that match the strings in allowed_features are allowed. |
59 bool Initialize(const char* allowed_features); | 61 bool Initialize(const char* allowed_features); |
60 bool Initialize(const DisallowedFeatures& disallowed_features, | 62 bool Initialize(const DisallowedFeatures& disallowed_features, |
61 const char* allowed_features); | 63 const char* allowed_features); |
(...skipping 29 matching lines...) Expand all Loading... |
91 | 93 |
92 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 94 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
93 }; | 95 }; |
94 | 96 |
95 } // namespace gles2 | 97 } // namespace gles2 |
96 } // namespace gpu | 98 } // namespace gpu |
97 | 99 |
98 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 100 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
99 | 101 |
100 | 102 |
OLD | NEW |