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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 1128933006: Update GL_CHROMIUM_image with support for compressed formats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index 1c8045d75bd8269809b1690837a016d494ee94e7..4dd3a1ae6c516edf98be897d39c0bcac763198fb 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -5200,6 +5200,11 @@ namespace {
bool ValidImageFormat(GLenum internalformat) {
switch (internalformat) {
+ case GL_ATC_RGB_AMD:
+ case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD:
+ case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:
+ case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT:
+ case GL_ETC1_RGB8_OES:
piman 2015/05/13 16:41:57 Can we return false if the corresponding extension
christiank 2015/05/18 11:10:52 Good idea, fixed.
case GL_R8:
case GL_RGB:
case GL_RGBA:

Powered by Google App Engine
This is Rietveld 408576698