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

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

Issue 1546303002: Command Buffer: add types for vertexAttribPointer against gles3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0d07f4e0c359d9a8fbd359879f16e9d7bf67d9e7..e28e232001598253c1aa3fe479464e2e7c282e2e 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.cc
+++ b/gpu/command_buffer/common/gles2_cmd_utils.cc
@@ -804,6 +804,12 @@ size_t GLES2Util::GetGLTypeSizeForTexturesAndBuffers(uint32_t type) {
return sizeof(GLfloat); // NOLINT
case GL_FIXED:
return sizeof(GLfixed); // NOLINT
+ case GL_HALF_FLOAT:
+ return sizeof(GLushort); // NOLINT
Zhenyao Mo 2015/12/29 21:03:02 nit: wrong indent, here and below.
yunchao 2015/12/30 00:35:09 Done.
+ case GL_INT_2_10_10_10_REV:
+ return sizeof(GLint); // NOLINT
+ case GL_UNSIGNED_INT_2_10_10_10_REV:
+ return sizeof(GLuint); // NOLINT
default:
return 0;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698