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; |
34 // Use glBlitFramebuffer() and glRenderbufferStorageMultisample() with | 35 // Use glBlitFramebuffer() and glRenderbufferStorageMultisample() with |
35 // GL_EXT_framebuffer_multisample-style semantics, since they are exposed | 36 // GL_EXT_framebuffer_multisample-style semantics, since they are exposed |
36 // as core GL functions on this implementation. | 37 // as core GL functions on this implementation. |
37 bool use_core_framebuffer_multisample; | 38 bool use_core_framebuffer_multisample; |
38 bool multisampled_render_to_texture; | 39 bool multisampled_render_to_texture; |
39 // Use the IMG GLenum values and functions rather than EXT. | 40 // Use the IMG GLenum values and functions rather than EXT. |
40 bool use_img_for_multisampled_render_to_texture; | 41 bool use_img_for_multisampled_render_to_texture; |
41 bool oes_standard_derivatives; | 42 bool oes_standard_derivatives; |
42 bool oes_egl_image_external; | 43 bool oes_egl_image_external; |
43 bool oes_depth24; | 44 bool oes_depth24; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // Flags for Workarounds. | 142 // Flags for Workarounds. |
142 Workarounds workarounds_; | 143 Workarounds workarounds_; |
143 | 144 |
144 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); | 145 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); |
145 }; | 146 }; |
146 | 147 |
147 } // namespace gles2 | 148 } // namespace gles2 |
148 } // namespace gpu | 149 } // namespace gpu |
149 | 150 |
150 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ | 151 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ |
OLD | NEW |