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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 case GL_BOOL_VEC4: | 486 case GL_BOOL_VEC4: |
487 return sizeof(GLint) * 4; // NOLINT | 487 return sizeof(GLint) * 4; // NOLINT |
488 case GL_FLOAT_MAT2: | 488 case GL_FLOAT_MAT2: |
489 return sizeof(GLfloat) * 2 * 2; // NOLINT | 489 return sizeof(GLfloat) * 2 * 2; // NOLINT |
490 case GL_FLOAT_MAT3: | 490 case GL_FLOAT_MAT3: |
491 return sizeof(GLfloat) * 3 * 3; // NOLINT | 491 return sizeof(GLfloat) * 3 * 3; // NOLINT |
492 case GL_FLOAT_MAT4: | 492 case GL_FLOAT_MAT4: |
493 return sizeof(GLfloat) * 4 * 4; // NOLINT | 493 return sizeof(GLfloat) * 4 * 4; // NOLINT |
494 case GL_SAMPLER_2D: | 494 case GL_SAMPLER_2D: |
495 return sizeof(GLint); // NOLINT | 495 return sizeof(GLint); // NOLINT |
| 496 case GL_SAMPLER_2D_RECT_ARB: |
| 497 return sizeof(GLint); // NOLINT |
496 case GL_SAMPLER_CUBE: | 498 case GL_SAMPLER_CUBE: |
497 return sizeof(GLint); // NOLINT | 499 return sizeof(GLint); // NOLINT |
498 case GL_SAMPLER_EXTERNAL_OES: | 500 case GL_SAMPLER_EXTERNAL_OES: |
499 return sizeof(GLint); // NOLINT | 501 return sizeof(GLint); // NOLINT |
500 default: | 502 default: |
501 return 0; | 503 return 0; |
502 } | 504 } |
503 } | 505 } |
504 | 506 |
505 size_t GLES2Util::GetGLTypeSizeForTexturesAndBuffers(uint32 type) { | 507 size_t GLES2Util::GetGLTypeSizeForTexturesAndBuffers(uint32 type) { |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 } | 750 } |
749 | 751 |
750 return true; | 752 return true; |
751 } | 753 } |
752 | 754 |
753 #include "../common/gles2_cmd_utils_implementation_autogen.h" | 755 #include "../common/gles2_cmd_utils_implementation_autogen.h" |
754 | 756 |
755 } // namespace gles2 | 757 } // namespace gles2 |
756 } // namespace gpu | 758 } // namespace gpu |
757 | 759 |
OLD | NEW |