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