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 struct Workarounds { | 47 struct Workarounds { |
48 Workarounds(); | 48 Workarounds(); |
49 | 49 |
50 bool clear_alpha_in_readpixels; | 50 bool clear_alpha_in_readpixels; |
51 bool clear_uniforms_before_program_use; | 51 bool clear_uniforms_before_program_use; |
52 bool needs_glsl_built_in_function_emulation; | 52 bool needs_glsl_built_in_function_emulation; |
53 bool needs_offscreen_buffer_workaround; | 53 bool needs_offscreen_buffer_workaround; |
54 bool reverse_point_sprite_coord_origin; | 54 bool reverse_point_sprite_coord_origin; |
55 bool set_texture_filter_before_generating_mipmap; | 55 bool set_texture_filter_before_generating_mipmap; |
56 bool use_current_program_after_successful_link; | 56 bool use_current_program_after_successful_link; |
| 57 bool restore_scissor_on_fbo_change; |
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // Flags for Workarounds. | 116 // Flags for Workarounds. |
116 Workarounds workarounds_; | 117 Workarounds workarounds_; |
117 | 118 |
118 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 119 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
119 }; | 120 }; |
120 | 121 |
121 } // namespace gles2 | 122 } // namespace gles2 |
122 } // namespace gpu | 123 } // namespace gpu |
123 | 124 |
124 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 125 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
OLD | NEW |