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

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

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
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc b/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
index c9e6bdbc538da2e221549b4c157bb9d48a2fb88b..9a6f883d5ca030d442fade36b219fbbda42f6a7f 100644
--- a/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
+++ b/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
@@ -74,6 +74,7 @@ enum {
D_FORMAT_RGBA16F,
D_FORMAT_RGBA32F,
D_FORMAT_R11F_G11F_B10F,
+ D_FORMAT_RGB10_A2,
NUM_D_FORMAT
};
@@ -269,6 +270,9 @@ ShaderId GetFragmentShaderId(bool premultiply_alpha,
case GL_R11F_G11F_B10F:
destFormatIndex = D_FORMAT_R11F_G11F_B10F;
break;
+ case GL_RGB10_A2:
+ destFormatIndex = D_FORMAT_RGB10_A2;
+ break;
default:
NOTREACHED();
break;
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698