Chromium Code Reviews| 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; |
| } |