OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "gpu/command_buffer/service/gles2_cmd_decoder.h" | 9 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
10 #include "gpu/command_buffer/service/gles2_cmd_validation.h" | 10 #include "gpu/command_buffer/service/gles2_cmd_validation.h" |
11 | 11 |
12 namespace gpu { | 12 namespace gpu { |
13 namespace gles2 { | 13 namespace gles2 { |
14 | 14 |
15 // FeatureInfo records the features that are available for a particular context. | 15 // FeatureInfo records the features that are available for a particular context. |
16 class FeatureInfo { | 16 class FeatureInfo { |
17 public: | 17 public: |
18 struct FeatureFlags { | 18 struct FeatureFlags { |
19 FeatureFlags() | 19 FeatureFlags() |
20 : chromium_framebuffer_multisample(false), | 20 : chromium_framebuffer_multisample(false), |
21 oes_standard_derivatives(false), | 21 oes_standard_derivatives(false), |
| 22 oes_egl_image_external(false), |
22 npot_ok(false), | 23 npot_ok(false), |
23 enable_texture_float_linear(false), | 24 enable_texture_float_linear(false), |
24 enable_texture_half_float_linear(false), | 25 enable_texture_half_float_linear(false), |
25 chromium_webglsl(false) { | 26 chromium_webglsl(false) { |
26 } | 27 } |
27 | 28 |
28 bool chromium_framebuffer_multisample; | 29 bool chromium_framebuffer_multisample; |
29 bool oes_standard_derivatives; | 30 bool oes_standard_derivatives; |
| 31 bool oes_egl_image_external; |
30 bool npot_ok; | 32 bool npot_ok; |
31 bool enable_texture_float_linear; | 33 bool enable_texture_float_linear; |
32 bool enable_texture_half_float_linear; | 34 bool enable_texture_half_float_linear; |
33 bool chromium_webglsl; | 35 bool chromium_webglsl; |
34 }; | 36 }; |
35 | 37 |
36 FeatureInfo(); | 38 FeatureInfo(); |
37 ~FeatureInfo(); | 39 ~FeatureInfo(); |
38 | 40 |
39 // If allowed features = NULL or "*", all features are allowed. Otherwise | 41 // If allowed features = NULL or "*", all features are allowed. Otherwise |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 75 |
74 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 76 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
75 }; | 77 }; |
76 | 78 |
77 } // namespace gles2 | 79 } // namespace gles2 |
78 } // namespace gpu | 80 } // namespace gpu |
79 | 81 |
80 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 82 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
81 | 83 |
82 | 84 |
OLD | NEW |