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

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

Issue 2354713004: Implement WEBGL_compressed_texture_es3_0 extension for WebGL 1/2 (Closed)
Patch Set: refactor ETC2/EAC support in command buffer (plus rebase) Created 4 years, 3 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/build_gles2_cmd_buffer.py ('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/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);
Kai Ninomiya 2016/09/21 22:31:17 Is this change in the autogenerated code okay?
Kai Ninomiya 2016/09/21 22:46:47 Never mind, once my brain started working again I
}
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"},
};
Kai Ninomiya 2016/09/21 22:31:17 And this one?
Kai Ninomiya 2016/09/21 22:46:47 Never mind
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/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698