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