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" |
11 #include "base/sys_info.h" | 11 #include "base/sys_info.h" |
12 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 12 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
13 #include "gpu/command_buffer/service/gles2_cmd_validation.h" | 13 #include "gpu/command_buffer/service/gles2_cmd_validation.h" |
14 #include "gpu/gpu_export.h" | 14 #include "gpu/gpu_export.h" |
15 | 15 |
16 namespace gpu { | 16 namespace gpu { |
17 namespace gles2 { | 17 namespace gles2 { |
18 | 18 |
19 // FeatureInfo records the features that are available for a ContextGroup. | 19 // FeatureInfo records the features that are available for a ContextGroup. |
20 class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> { | 20 class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> { |
21 public: | 21 public: |
22 typedef scoped_refptr<FeatureInfo> Ref; | |
23 | |
24 struct FeatureFlags { | 22 struct FeatureFlags { |
25 FeatureFlags(); | 23 FeatureFlags(); |
26 | 24 |
27 bool chromium_framebuffer_multisample; | 25 bool chromium_framebuffer_multisample; |
28 bool oes_standard_derivatives; | 26 bool oes_standard_derivatives; |
29 bool oes_egl_image_external; | 27 bool oes_egl_image_external; |
30 bool npot_ok; | 28 bool npot_ok; |
31 bool enable_texture_float_linear; | 29 bool enable_texture_float_linear; |
32 bool enable_texture_half_float_linear; | 30 bool enable_texture_half_float_linear; |
33 bool chromium_stream_texture; | 31 bool chromium_stream_texture; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // Flags for Workarounds. | 114 // Flags for Workarounds. |
117 Workarounds workarounds_; | 115 Workarounds workarounds_; |
118 | 116 |
119 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 117 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
120 }; | 118 }; |
121 | 119 |
122 } // namespace gles2 | 120 } // namespace gles2 |
123 } // namespace gpu | 121 } // namespace gpu |
124 | 122 |
125 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 123 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
OLD | NEW |