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

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

Issue 2821363003: WebGL: tex(Sub)Image(2D|3D) texImageSource support for RGB10_A2 textures. (Closed)
Patch Set: Created 3 years, 8 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/WebGLRenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
index f0449e4394878d25f29f793afc6610ad4f3f55f6..22eaed9f202e8dccc998fa8727eef626d0ae1ac8 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
@@ -914,11 +914,11 @@ static const GLenum kSupportedInternalFormatsTexImageES3[] = {
// ES3 enums supported by TexImageSource
static const GLenum kSupportedInternalFormatsTexImageSourceES3[] = {
- GL_R8, GL_R16F, GL_R32F, GL_R8UI, GL_RG8,
- GL_RG16F, GL_RG32F, GL_RG8UI, GL_RGB8, GL_SRGB8,
- GL_RGB565, GL_R11F_G11F_B10F, GL_RGB9_E5, GL_RGB16F, GL_RGB32F,
- GL_RGB8UI, GL_RGBA8, GL_SRGB8_ALPHA8, GL_RGB5_A1, GL_RGBA4,
- GL_RGBA16F, GL_RGBA32F, GL_RGBA8UI,
+ GL_R8, GL_R16F, GL_R32F, GL_R8UI, GL_RG8,
+ GL_RG16F, GL_RG32F, GL_RG8UI, GL_RGB8, GL_SRGB8,
+ GL_RGB565, GL_R11F_G11F_B10F, GL_RGB9_E5, GL_RGB16F, GL_RGB32F,
+ GL_RGB8UI, GL_RGBA8, GL_SRGB8_ALPHA8, GL_RGB5_A1, GL_RGBA4,
+ GL_RGBA16F, GL_RGBA32F, GL_RGBA8UI, GL_RGB10_A2,
};
// ES2 enums
@@ -991,6 +991,7 @@ static const GLenum kSupportedTypesES3[] = {
// ES3 enums supported by TexImageSource
static const GLenum kSupportedTypesTexImageSourceES3[] = {
GL_HALF_FLOAT, GL_FLOAT, GL_UNSIGNED_INT_10F_11F_11F_REV,
+ GL_UNSIGNED_INT_2_10_10_10_REV,
};
} // namespace

Powered by Google App Engine
This is Rietveld 408576698