| 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 8381586482b441b32cd7fe3f1bb8cd9284840419..85571dca18a8d81f347693a594c1a3e3fb1d932a 100644
|
| --- a/gpu/command_buffer/common/gles2_cmd_utils.cc
|
| +++ b/gpu/command_buffer/common/gles2_cmd_utils.cc
|
| @@ -546,6 +546,26 @@ size_t GLES2Util::GetGLTypeSizeForTexturesAndBuffers(uint32 type) {
|
| }
|
| }
|
|
|
| +size_t GLES2Util::GetComponentCountForGLTransformType(uint32 type) {
|
| + switch (type) {
|
| + case GL_TRANSLATE_X_CHROMIUM:
|
| + case GL_TRANSLATE_Y_CHROMIUM:
|
| + return 1;
|
| + case GL_TRANSLATE_2D_CHROMIUM:
|
| + return 2;
|
| + case GL_TRANSLATE_3D_CHROMIUM:
|
| + return 3;
|
| + case GL_AFFINE_2D_CHROMIUM:
|
| + case GL_TRANSPOSE_AFFINE_2D_CHROMIUM:
|
| + return 6;
|
| + case GL_AFFINE_3D_CHROMIUM:
|
| + case GL_TRANSPOSE_AFFINE_3D_CHROMIUM:
|
| + return 12;
|
| + default:
|
| + return 0;
|
| + }
|
| +}
|
| +
|
| uint32 GLES2Util::GLErrorToErrorBit(uint32 error) {
|
| switch (error) {
|
| case GL_INVALID_ENUM:
|
|
|