Chromium Code Reviews| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/sys_info.h" | 12 #include "base/sys_info.h" |
| 13 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 13 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 14 #include "gpu/command_buffer/service/gles2_cmd_validation.h" | 14 #include "gpu/command_buffer/service/gles2_cmd_validation.h" |
| 15 #include "gpu/config/gpu_driver_bug_workaround_type.h" | 15 #include "gpu/config/gpu_driver_bug_workaround_type.h" |
| 16 #include "gpu/gpu_export.h" | 16 #include "gpu/gpu_export.h" |
| 17 | 17 |
| 18 class CommandLine; | 18 class CommandLine; |
| 19 | 19 |
| 20 namespace gpu { | 20 namespace gpu { |
| 21 namespace gles2 { | 21 namespace gles2 { |
| 22 | 22 |
| 23 // FeatureInfo records the features that are available for a ContextGroup. | 23 // FeatureInfo records the features that are available for a ContextGroup. |
| 24 class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> { | 24 class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> { |
| 25 public: | 25 public: |
| 26 struct FeatureFlags { | 26 struct FeatureFlags { |
| 27 FeatureFlags(); | 27 FeatureFlags(); |
| 28 | 28 |
| 29 bool chromium_framebuffer_multisample; | 29 bool chromium_framebuffer_multisample; |
| 30 bool core_framebuffer_multisample; | |
|
Zhenyao Mo
2013/11/14 02:04:20
Please add a comment to explain this variable.
Sami
2013/11/14 15:48:53
+1, and nit: use_core_framebuffer_multisample?
no sievers
2013/11/15 00:21:36
Done and done.
| |
| 30 bool multisampled_render_to_texture; | 31 bool multisampled_render_to_texture; |
| 31 // Use the IMG GLenum values and functions rather than EXT. | 32 // Use the IMG GLenum values and functions rather than EXT. |
| 32 bool use_img_for_multisampled_render_to_texture; | 33 bool use_img_for_multisampled_render_to_texture; |
| 33 bool oes_standard_derivatives; | 34 bool oes_standard_derivatives; |
| 34 bool oes_egl_image_external; | 35 bool oes_egl_image_external; |
| 35 bool oes_depth24; | 36 bool oes_depth24; |
| 37 bool packed_depth24_stencil8; | |
| 36 bool npot_ok; | 38 bool npot_ok; |
| 37 bool enable_texture_float_linear; | 39 bool enable_texture_float_linear; |
| 38 bool enable_texture_half_float_linear; | 40 bool enable_texture_half_float_linear; |
| 39 bool chromium_stream_texture; | 41 bool chromium_stream_texture; |
| 40 bool angle_translated_shader_source; | 42 bool angle_translated_shader_source; |
| 41 bool angle_pack_reverse_row_order; | 43 bool angle_pack_reverse_row_order; |
| 42 bool arb_texture_rectangle; | 44 bool arb_texture_rectangle; |
| 43 bool angle_instanced_arrays; | 45 bool angle_instanced_arrays; |
| 44 bool occlusion_query_boolean; | 46 bool occlusion_query_boolean; |
| 45 bool use_arb_occlusion_query2_for_occlusion_query_boolean; | 47 bool use_arb_occlusion_query2_for_occlusion_query_boolean; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 // Flags for Workarounds. | 125 // Flags for Workarounds. |
| 124 Workarounds workarounds_; | 126 Workarounds workarounds_; |
| 125 | 127 |
| 126 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 128 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
| 127 }; | 129 }; |
| 128 | 130 |
| 129 } // namespace gles2 | 131 } // namespace gles2 |
| 130 } // namespace gpu | 132 } // namespace gpu |
| 131 | 133 |
| 132 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 134 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
| OLD | NEW |