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

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

Issue 2479513002: Reland of Extend CopyTextureCHROMIUM to more ES 3.0 texture formats. (Closed)
Patch Set: rebase and minor fix for premultiply and un-premultiply alpha Created 4 years, 1 month 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 77000c5037eee2a85806b6bb6250b366d81f2f26..8f28d3c2fe19e775493354ea3f7243a42f20311f 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -211,6 +211,8 @@ void FeatureInfo::InitializeBasicState(const base::CommandLine* command_line) {
ext_color_buffer_float_available_ = false;
oes_texture_float_linear_available_ = false;
oes_texture_half_float_linear_available_ = false;
+ texture_format_bgra8888_available_ = false;
+ ext_srgb_available_ = false;
}
bool FeatureInfo::Initialize(ContextType context_type,
@@ -589,6 +591,7 @@ void FeatureInfo::InitializeFeatures() {
extensions.Contains("GL_EXT_sRGB")) ||
feature_flags_.desktop_srgb_support) &&
IsWebGL1OrES2Context()) {
+ ext_srgb_available_ = true;
AddExtensionString("GL_EXT_sRGB");
validators_.texture_internal_format.AddValue(GL_SRGB_EXT);
validators_.texture_internal_format.AddValue(GL_SRGB_ALPHA_EXT);
@@ -673,6 +676,7 @@ void FeatureInfo::InitializeFeatures() {
if (enable_texture_format_bgra8888) {
feature_flags_.ext_texture_format_bgra8888 = true;
+ texture_format_bgra8888_available_ = true;
AddExtensionString("GL_EXT_texture_format_BGRA8888");
validators_.texture_internal_format.AddValue(GL_BGRA_EXT);
validators_.texture_format.AddValue(GL_BGRA_EXT);

Powered by Google App Engine
This is Rietveld 408576698