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

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

Issue 2354713004: Implement WEBGL_compressed_texture_es3_0 extension for WebGL 1/2 (Closed)
Patch Set: fixup 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
Index: gpu/command_buffer/service/texture_manager.cc
diff --git a/gpu/command_buffer/service/texture_manager.cc b/gpu/command_buffer/service/texture_manager.cc
index 796b2870ed189c9af5c2a68593afaa4d23860b21..fdb4af4debee54317c9a00d20b9ec3c184dfe30f 100644
--- a/gpu/command_buffer/service/texture_manager.cc
+++ b/gpu/command_buffer/service/texture_manager.cc
@@ -3146,6 +3146,8 @@ void TextureManager::DumpTextureRef(base::trace_event::ProcessMemoryDump* pmd,
GLenum TextureManager::ExtractFormatFromStorageFormat(GLenum internalformat) {
switch (internalformat) {
+ case GL_COMPRESSED_R11_EAC:
+ case GL_COMPRESSED_SIGNED_R11_EAC:
case GL_RED:
case GL_R8:
case GL_R8_SNORM:
@@ -3159,6 +3161,8 @@ GLenum TextureManager::ExtractFormatFromStorageFormat(GLenum internalformat) {
case GL_R32UI:
case GL_R32I:
return GL_RED_INTEGER;
+ case GL_COMPRESSED_RG11_EAC:
+ case GL_COMPRESSED_SIGNED_RG11_EAC:
case GL_RG:
case GL_RG8:
case GL_RG8_SNORM:
@@ -3176,7 +3180,9 @@ GLenum TextureManager::ExtractFormatFromStorageFormat(GLenum internalformat) {
case GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG:
case GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG:
case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:
+ case GL_COMPRESSED_RGB8_ETC2:
case GL_COMPRESSED_SRGB_S3TC_DXT1_EXT:
+ case GL_COMPRESSED_SRGB8_ETC2:
case GL_ETC1_RGB8_OES:
case GL_RGB:
case GL_RGB8:
@@ -3199,6 +3205,8 @@ GLenum TextureManager::ExtractFormatFromStorageFormat(GLenum internalformat) {
return GL_SRGB;
case GL_ATC_RGBA_EXPLICIT_ALPHA_AMD:
case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD:
+ case GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:
+ case GL_COMPRESSED_RGBA8_ETC2_EAC:
case GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:
case GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:
case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT:
@@ -3207,6 +3215,8 @@ GLenum TextureManager::ExtractFormatFromStorageFormat(GLenum internalformat) {
case GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT:
case GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT:
case GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT:
+ case GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:
+ case GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:
case GL_RGBA:
case GL_RGBA8:
case GL_SRGB8_ALPHA8:

Powered by Google App Engine
This is Rietveld 408576698