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

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

Issue 2945673002: Allow creating GLImage-backed textures with glTexStorage2D. (Closed)
Patch Set: add extension spec and don't enable for webgl Created 3 years, 6 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
Index: gpu/command_buffer/service/feature_info.cc
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index 8a114b4fe05ffa443364cd19e0957ca2d92673fc..b641ef29fc91261f2c8dffd10a7c8ec61ccafda1 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -1395,6 +1395,11 @@ void FeatureInfo::InitializeFeatures() {
feature_flags_.arb_robustness = extensions.Contains("GL_ARB_robustness");
feature_flags_.khr_robustness = extensions.Contains("GL_KHR_robustness");
feature_flags_.ext_robustness = extensions.Contains("GL_EXT_robustness");
+
+ if (!IsWebGLContext()) {
+ AddExtensionString("GL_CHROMIUM_texture_buffer");
+ validators_.texture_parameter.AddValue(GL_TEXTURE_BUFFER_USAGE_CHROMIUM);
+ }
}
void FeatureInfo::InitializeFloatAndHalfFloatFeatures(

Powered by Google App Engine
This is Rietveld 408576698