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" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 // FeatureInfo records the features that are available for a ContextGroup. | 25 // FeatureInfo records the features that are available for a ContextGroup. |
26 class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> { | 26 class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> { |
27 public: | 27 public: |
28 struct FeatureFlags { | 28 struct FeatureFlags { |
29 FeatureFlags(); | 29 FeatureFlags(); |
30 | 30 |
31 bool chromium_color_buffer_float_rgba; | 31 bool chromium_color_buffer_float_rgba; |
32 bool chromium_color_buffer_float_rgb; | 32 bool chromium_color_buffer_float_rgb; |
33 bool chromium_framebuffer_multisample; | 33 bool chromium_framebuffer_multisample; |
34 bool chromium_sync_query; | |
35 // Use glBlitFramebuffer() and glRenderbufferStorageMultisample() with | 34 // Use glBlitFramebuffer() and glRenderbufferStorageMultisample() with |
36 // GL_EXT_framebuffer_multisample-style semantics, since they are exposed | 35 // GL_EXT_framebuffer_multisample-style semantics, since they are exposed |
37 // as core GL functions on this implementation. | 36 // as core GL functions on this implementation. |
38 bool use_core_framebuffer_multisample; | 37 bool use_core_framebuffer_multisample; |
39 bool multisampled_render_to_texture; | 38 bool multisampled_render_to_texture; |
40 // Use the IMG GLenum values and functions rather than EXT. | 39 // Use the IMG GLenum values and functions rather than EXT. |
41 bool use_img_for_multisampled_render_to_texture; | 40 bool use_img_for_multisampled_render_to_texture; |
42 bool oes_standard_derivatives; | 41 bool oes_standard_derivatives; |
43 bool oes_egl_image_external; | 42 bool oes_egl_image_external; |
44 bool oes_depth24; | 43 bool oes_depth24; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 // Flags for Workarounds. | 137 // Flags for Workarounds. |
139 Workarounds workarounds_; | 138 Workarounds workarounds_; |
140 | 139 |
141 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 140 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
142 }; | 141 }; |
143 | 142 |
144 } // namespace gles2 | 143 } // namespace gles2 |
145 } // namespace gpu | 144 } // namespace gpu |
146 | 145 |
147 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 146 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
OLD | NEW |