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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp

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: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
index 3d352b67a928bbbc0d3d3414aab1d80bae729430..a91d05759a43b101f02b2bdc0cf2be89dad7552d 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
@@ -135,19 +135,6 @@ const GLenum kSupportedInternalFormatsStorage[] = {
GL_DEPTH32F_STENCIL8,
};
-const GLenum kCompressedTextureFormatsETC2EAC[] = {
- GL_COMPRESSED_R11_EAC,
- GL_COMPRESSED_SIGNED_R11_EAC,
- GL_COMPRESSED_RG11_EAC,
- GL_COMPRESSED_SIGNED_RG11_EAC,
- GL_COMPRESSED_RGB8_ETC2,
- GL_COMPRESSED_SRGB8_ETC2,
- GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
- GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,
- GL_COMPRESSED_RGBA8_ETC2_EAC,
- GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC,
-};
-
WebGL2RenderingContextBase::WebGL2RenderingContextBase(
HTMLCanvasElement* passedCanvas,
std::unique_ptr<WebGraphicsContext3DProvider> contextProvider,
@@ -160,17 +147,6 @@ WebGL2RenderingContextBase::WebGL2RenderingContextBase(
kSupportedInternalFormatsStorage,
kSupportedInternalFormatsStorage +
WTF_ARRAY_LENGTH(kSupportedInternalFormatsStorage));
- m_supportedInternalFormatsStorage.insert(
- kCompressedTextureFormatsETC2EAC,
- kCompressedTextureFormatsETC2EAC +
- WTF_ARRAY_LENGTH(kCompressedTextureFormatsETC2EAC));
- m_compressedTextureFormatsETC2EAC.insert(
- kCompressedTextureFormatsETC2EAC,
- kCompressedTextureFormatsETC2EAC +
- WTF_ARRAY_LENGTH(kCompressedTextureFormatsETC2EAC));
- m_compressedTextureFormats.append(
- kCompressedTextureFormatsETC2EAC,
- WTF_ARRAY_LENGTH(kCompressedTextureFormatsETC2EAC));
}
WebGL2RenderingContextBase::~WebGL2RenderingContextBase() {

Powered by Google App Engine
This is Rietveld 408576698