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/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 10 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
11 #include "gpu/command_buffer/service/gles2_cmd_validation.h" | 11 #include "gpu/command_buffer/service/gles2_cmd_validation.h" |
12 #include "gpu/gpu_export.h" | |
13 | 12 |
14 namespace gpu { | 13 namespace gpu { |
15 namespace gles2 { | 14 namespace gles2 { |
16 | 15 |
17 // FeatureInfo records the features that are available for a ContextGroup. | 16 // FeatureInfo records the features that are available for a ContextGroup. |
18 class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> { | 17 class FeatureInfo : public base::RefCounted<FeatureInfo> { |
19 public: | 18 public: |
20 typedef scoped_refptr<FeatureInfo> Ref; | 19 typedef scoped_refptr<FeatureInfo> Ref; |
21 | 20 |
22 struct FeatureFlags { | 21 struct FeatureFlags { |
23 FeatureFlags() | 22 FeatureFlags() |
24 : chromium_framebuffer_multisample(false), | 23 : chromium_framebuffer_multisample(false), |
25 oes_standard_derivatives(false), | 24 oes_standard_derivatives(false), |
26 oes_egl_image_external(false), | 25 oes_egl_image_external(false), |
27 npot_ok(false), | 26 npot_ok(false), |
28 enable_texture_float_linear(false), | 27 enable_texture_float_linear(false), |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 88 |
90 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 89 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
91 }; | 90 }; |
92 | 91 |
93 } // namespace gles2 | 92 } // namespace gles2 |
94 } // namespace gpu | 93 } // namespace gpu |
95 | 94 |
96 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 95 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
97 | 96 |
98 | 97 |
OLD | NEW |