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

Unified Diff: gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h

Issue 2366453002: remove ETC2/EAC texture support in core WebGL 2 (Closed)
Patch Set: rebase Created 4 years, 2 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/common/gles2_cmd_utils_implementation_autogen.h
diff --git a/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h b/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
index 3f0bf14b2aaa66a80a0ce3da41cc15d684209178..cdebc20396d7bf2658cbff21a4da224239ae97ac 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
@@ -3632,23 +3632,7 @@ std::string GLES2Util::GetStringCmpFunction(uint32_t value) {
}
std::string GLES2Util::GetStringCompressedTextureFormat(uint32_t value) {
- static const EnumToString string_table[] = {
- {GL_COMPRESSED_R11_EAC, "GL_COMPRESSED_R11_EAC"},
- {GL_COMPRESSED_SIGNED_R11_EAC, "GL_COMPRESSED_SIGNED_R11_EAC"},
- {GL_COMPRESSED_RG11_EAC, "GL_COMPRESSED_RG11_EAC"},
- {GL_COMPRESSED_SIGNED_RG11_EAC, "GL_COMPRESSED_SIGNED_RG11_EAC"},
- {GL_COMPRESSED_RGB8_ETC2, "GL_COMPRESSED_RGB8_ETC2"},
- {GL_COMPRESSED_SRGB8_ETC2, "GL_COMPRESSED_SRGB8_ETC2"},
- {GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
- "GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2"},
- {GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,
- "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2"},
- {GL_COMPRESSED_RGBA8_ETC2_EAC, "GL_COMPRESSED_RGBA8_ETC2_EAC"},
- {GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC,
- "GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"},
- };
- return GLES2Util::GetQualifiedEnumString(string_table,
- arraysize(string_table), value);
+ return GLES2Util::GetQualifiedEnumString(NULL, 0, value);
}
std::string GLES2Util::GetStringCoverageModulationComponents(uint32_t value) {
@@ -4731,19 +4715,6 @@ std::string GLES2Util::GetStringTextureInternalFormatStorage(uint32_t value) {
{GL_DEPTH_COMPONENT32F, "GL_DEPTH_COMPONENT32F"},
{GL_DEPTH24_STENCIL8, "GL_DEPTH24_STENCIL8"},
{GL_DEPTH32F_STENCIL8, "GL_DEPTH32F_STENCIL8"},
- {GL_COMPRESSED_R11_EAC, "GL_COMPRESSED_R11_EAC"},
- {GL_COMPRESSED_SIGNED_R11_EAC, "GL_COMPRESSED_SIGNED_R11_EAC"},
- {GL_COMPRESSED_RG11_EAC, "GL_COMPRESSED_RG11_EAC"},
- {GL_COMPRESSED_SIGNED_RG11_EAC, "GL_COMPRESSED_SIGNED_RG11_EAC"},
- {GL_COMPRESSED_RGB8_ETC2, "GL_COMPRESSED_RGB8_ETC2"},
- {GL_COMPRESSED_SRGB8_ETC2, "GL_COMPRESSED_SRGB8_ETC2"},
- {GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
- "GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2"},
- {GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,
- "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2"},
- {GL_COMPRESSED_RGBA8_ETC2_EAC, "GL_COMPRESSED_RGBA8_ETC2_EAC"},
- {GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC,
- "GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"},
};
return GLES2Util::GetQualifiedEnumString(string_table,
arraysize(string_table), value);
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698