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

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: addressed zmo@'s feedback: merge some code into this one 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 | 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/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..0ee8399ce470a5209103a62ab8bcc46d24a537b6 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
+ 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 | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698