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

Unified Diff: gpu/command_buffer/common/gles2_cmd_utils.cc

Issue 7458008: Support GL_OES_EGL_image_external (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix typo which hung the windows gpu_unittests by corrupting the stack Created 9 years, 5 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/common/gles2_cmd_utils.cc
diff --git a/gpu/command_buffer/common/gles2_cmd_utils.cc b/gpu/command_buffer/common/gles2_cmd_utils.cc
index 0f8d67b6033f89d206d7d57d36f38dfab936a361..ca58967ade9a4f26a505fd9f24eb595488c74a94 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.cc
+++ b/gpu/command_buffer/common/gles2_cmd_utils.cc
@@ -194,6 +194,8 @@ int GLES2Util::GLGetNumValuesReturned(int id) const {
return 1;
case GL_TEXTURE_BINDING_CUBE_MAP:
return 1;
+ case GL_TEXTURE_BINDING_EXTERNAL_OES:
+ return 1;
case GL_UNPACK_ALIGNMENT:
return 1;
case GL_VIEWPORT:
@@ -433,6 +435,8 @@ uint32 GLES2Util::GetGLDataTypeSizeForUniforms(int type) {
return sizeof(GLint); // NOLINT
case GL_SAMPLER_CUBE:
return sizeof(GLint); // NOLINT
+ case GL_SAMPLER_EXTERNAL_OES:
+ return sizeof(GLint); // NOLINT
default:
return 0;
}
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_autogen.h ('k') | gpu/command_buffer/common/gles2_cmd_utils_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698