Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: gpu/command_buffer/service/feature_info.h

Issue 139013008: Implement support for rendering to 32-bit float textures on ES3 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Check that framebuffers really are supported and add tests Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/sys_info.h" 12 #include "base/sys_info.h"
13 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 13 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
14 #include "gpu/command_buffer/service/gles2_cmd_validation.h" 14 #include "gpu/command_buffer/service/gles2_cmd_validation.h"
15 #include "gpu/config/gpu_driver_bug_workaround_type.h" 15 #include "gpu/config/gpu_driver_bug_workaround_type.h"
16 #include "gpu/gpu_export.h" 16 #include "gpu/gpu_export.h"
17 17
18 class CommandLine; 18 class CommandLine;
19 19
20 namespace gpu { 20 namespace gpu {
21 namespace gles2 { 21 namespace gles2 {
22 22
23 // FeatureInfo records the features that are available for a ContextGroup. 23 // FeatureInfo records the features that are available for a ContextGroup.
24 class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> { 24 class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> {
25 public: 25 public:
26 struct FeatureFlags { 26 struct FeatureFlags {
27 FeatureFlags(); 27 FeatureFlags();
28 28
29 bool chromium_color_buffer_float;
29 bool chromium_framebuffer_multisample; 30 bool chromium_framebuffer_multisample;
30 // Use glBlitFramebuffer() and glRenderbufferStorageMultisample() with 31 // Use glBlitFramebuffer() and glRenderbufferStorageMultisample() with
31 // GL_EXT_framebuffer_multisample-style semantics, since they are exposed 32 // GL_EXT_framebuffer_multisample-style semantics, since they are exposed
32 // as core GL functions on this implementation. 33 // as core GL functions on this implementation.
33 bool use_core_framebuffer_multisample; 34 bool use_core_framebuffer_multisample;
34 bool multisampled_render_to_texture; 35 bool multisampled_render_to_texture;
35 // Use the IMG GLenum values and functions rather than EXT. 36 // Use the IMG GLenum values and functions rather than EXT.
36 bool use_img_for_multisampled_render_to_texture; 37 bool use_img_for_multisampled_render_to_texture;
37 bool oes_standard_derivatives; 38 bool oes_standard_derivatives;
38 bool oes_egl_image_external; 39 bool oes_egl_image_external;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Flags for Workarounds. 135 // Flags for Workarounds.
135 Workarounds workarounds_; 136 Workarounds workarounds_;
136 137
137 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); 138 DISALLOW_COPY_AND_ASSIGN(FeatureInfo);
138 }; 139 };
139 140
140 } // namespace gles2 141 } // namespace gles2
141 } // namespace gpu 142 } // namespace gpu
142 143
143 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 144 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698