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 7a33ab1e48f9364ba885b3bbb595d76609c94c1b..1471456b3af33987061fa36d701ae945f794e20d 100644 |
--- a/gpu/command_buffer/common/gles2_cmd_utils.cc |
+++ b/gpu/command_buffer/common/gles2_cmd_utils.cc |
@@ -702,6 +702,23 @@ size_t GLES2Util::GetGLTypeSizeForTexturesAndBuffers(uint32 type) { |
} |
} |
+size_t GLES2Util::GetGLTypeSizeForPathCoordType(uint32 type) { |
+ switch (type) { |
+ case GL_BYTE: |
+ return sizeof(GLbyte); // NOLINT |
+ case GL_UNSIGNED_BYTE: |
+ return sizeof(GLubyte); // NOLINT |
+ case GL_SHORT: |
+ return sizeof(GLshort); // NOLINT |
+ case GL_UNSIGNED_SHORT: |
+ return sizeof(GLushort); // NOLINT |
+ case GL_FLOAT: |
+ return sizeof(GLfloat); // NOLINT |
+ default: |
+ return 0; |
+ } |
+} |
+ |
uint32 GLES2Util::GLErrorToErrorBit(uint32 error) { |
switch (error) { |
case GL_INVALID_ENUM: |