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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 bool clear_alpha_in_readpixels; | 47 bool clear_alpha_in_readpixels; |
48 bool clear_uniforms_before_program_use; | 48 bool clear_uniforms_before_program_use; |
49 bool needs_glsl_built_in_function_emulation; | 49 bool needs_glsl_built_in_function_emulation; |
50 bool needs_offscreen_buffer_workaround; | 50 bool needs_offscreen_buffer_workaround; |
51 bool reverse_point_sprite_coord_origin; | 51 bool reverse_point_sprite_coord_origin; |
52 bool set_texture_filter_before_generating_mipmap; | 52 bool set_texture_filter_before_generating_mipmap; |
53 bool use_current_program_after_successful_link; | 53 bool use_current_program_after_successful_link; |
54 bool restore_scissor_on_fbo_change; | 54 bool restore_scissor_on_fbo_change; |
55 bool flush_on_context_switch; | 55 bool flush_on_context_switch; |
56 bool delete_instead_of_resize_fbo; | 56 bool delete_instead_of_resize_fbo; |
| 57 bool use_client_side_arrays_for_stream_buffers; |
57 | 58 |
58 // Note: 0 here means use driver limit. | 59 // Note: 0 here means use driver limit. |
59 GLint max_texture_size; | 60 GLint max_texture_size; |
60 GLint max_cube_map_texture_size; | 61 GLint max_cube_map_texture_size; |
61 }; | 62 }; |
62 | 63 |
63 FeatureInfo(); | 64 FeatureInfo(); |
64 | 65 |
65 // If allowed features = NULL or "*", all features are allowed. Otherwise | 66 // If allowed features = NULL or "*", all features are allowed. Otherwise |
66 // only features that match the strings in allowed_features are allowed. | 67 // only features that match the strings in allowed_features are allowed. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // Flags for Workarounds. | 115 // Flags for Workarounds. |
115 Workarounds workarounds_; | 116 Workarounds workarounds_; |
116 | 117 |
117 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 118 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
118 }; | 119 }; |
119 | 120 |
120 } // namespace gles2 | 121 } // namespace gles2 |
121 } // namespace gpu | 122 } // namespace gpu |
122 | 123 |
123 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 124 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
OLD | NEW |