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

Unified Diff: gpu/command_buffer/service/feature_info.h

Issue 2713553005: Add GL_EXT_color_buffer_half_float support (Closed)
Patch Set: Fix compile error Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/context_group.cc ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info.h
diff --git a/gpu/command_buffer/service/feature_info.h b/gpu/command_buffer/service/feature_info.h
index fa0da85fdd72f796a793622f5d9e86ae5e8c2f47..a2a7f51926ada8beef75607f7ad7738f76eeea61 100644
--- a/gpu/command_buffer/service/feature_info.h
+++ b/gpu/command_buffer/service/feature_info.h
@@ -53,6 +53,7 @@ class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> {
bool enable_texture_float_linear = false;
bool enable_texture_half_float_linear = false;
bool enable_color_buffer_float = false;
+ bool enable_color_buffer_half_float = false;
bool angle_translated_shader_source = false;
bool angle_pack_reverse_row_order = false;
bool arb_texture_rectangle = false;
@@ -167,6 +168,7 @@ class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> {
void EnableCHROMIUMColorBufferFloatRGBA();
void EnableCHROMIUMColorBufferFloatRGB();
void EnableEXTColorBufferFloat();
+ void EnableEXTColorBufferHalfFloat();
void EnableOESTextureFloatLinear();
void EnableOESTextureHalfFloatLinear();
@@ -181,12 +183,14 @@ class GPU_EXPORT FeatureInfo : public base::RefCounted<FeatureInfo> {
private:
friend class base::RefCounted<FeatureInfo>;
friend class BufferManagerClientSideArraysTest;
+ class StringSet;
~FeatureInfo();
void AddExtensionString(const char* s);
void InitializeBasicState(const base::CommandLine* command_line);
void InitializeFeatures();
+ void InitializeFloatAndHalfFloatFeatures(const StringSet& extensions);
Validators validators_;
« no previous file with comments | « gpu/command_buffer/service/context_group.cc ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698