| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file is here so other GLES2 related files can have a common set of | 5 // This file is here so other GLES2 related files can have a common set of |
| 6 // includes where appropriate. | 6 // includes where appropriate. |
| 7 | 7 |
| 8 #include <stdio.h> | 8 #include <stdio.h> |
| 9 #include <GLES2/gl2.h> | 9 #include <GLES2/gl2.h> |
| 10 #include <GLES2/gl2ext.h> | 10 #include <GLES2/gl2ext.h> |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 case GL_BOOL_VEC4: | 490 case GL_BOOL_VEC4: |
| 491 return sizeof(GLint) * 4; // NOLINT | 491 return sizeof(GLint) * 4; // NOLINT |
| 492 case GL_FLOAT_MAT2: | 492 case GL_FLOAT_MAT2: |
| 493 return sizeof(GLfloat) * 2 * 2; // NOLINT | 493 return sizeof(GLfloat) * 2 * 2; // NOLINT |
| 494 case GL_FLOAT_MAT3: | 494 case GL_FLOAT_MAT3: |
| 495 return sizeof(GLfloat) * 3 * 3; // NOLINT | 495 return sizeof(GLfloat) * 3 * 3; // NOLINT |
| 496 case GL_FLOAT_MAT4: | 496 case GL_FLOAT_MAT4: |
| 497 return sizeof(GLfloat) * 4 * 4; // NOLINT | 497 return sizeof(GLfloat) * 4 * 4; // NOLINT |
| 498 case GL_SAMPLER_2D: | 498 case GL_SAMPLER_2D: |
| 499 return sizeof(GLint); // NOLINT | 499 return sizeof(GLint); // NOLINT |
| 500 case GL_SAMPLER_2D_RECT_ARB: |
| 501 return sizeof(GLint); // NOLINT |
| 500 case GL_SAMPLER_CUBE: | 502 case GL_SAMPLER_CUBE: |
| 501 return sizeof(GLint); // NOLINT | 503 return sizeof(GLint); // NOLINT |
| 502 case GL_SAMPLER_EXTERNAL_OES: | 504 case GL_SAMPLER_EXTERNAL_OES: |
| 503 return sizeof(GLint); // NOLINT | 505 return sizeof(GLint); // NOLINT |
| 504 default: | 506 default: |
| 505 return 0; | 507 return 0; |
| 506 } | 508 } |
| 507 } | 509 } |
| 508 | 510 |
| 509 size_t GLES2Util::GetGLTypeSizeForTexturesAndBuffers(uint32 type) { | 511 size_t GLES2Util::GetGLTypeSizeForTexturesAndBuffers(uint32 type) { |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 } | 756 } |
| 755 | 757 |
| 756 return true; | 758 return true; |
| 757 } | 759 } |
| 758 | 760 |
| 759 #include "../common/gles2_cmd_utils_implementation_autogen.h" | 761 #include "../common/gles2_cmd_utils_implementation_autogen.h" |
| 760 | 762 |
| 761 } // namespace gles2 | 763 } // namespace gles2 |
| 762 } // namespace gpu | 764 } // namespace gpu |
| 763 | 765 |
| OLD | NEW |