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 <sstream> | 8 #include <sstream> |
9 #include <GLES2/gl2.h> | 9 #include <GLES2/gl2.h> |
10 #include <GLES2/gl2ext.h> | 10 #include <GLES2/gl2ext.h> |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 case GL_UNSIGNED_SHORT: | 797 case GL_UNSIGNED_SHORT: |
798 return sizeof(GLushort); // NOLINT | 798 return sizeof(GLushort); // NOLINT |
799 case GL_INT: | 799 case GL_INT: |
800 return sizeof(GLint); // NOLINT | 800 return sizeof(GLint); // NOLINT |
801 case GL_UNSIGNED_INT: | 801 case GL_UNSIGNED_INT: |
802 return sizeof(GLuint); // NOLINT | 802 return sizeof(GLuint); // NOLINT |
803 case GL_FLOAT: | 803 case GL_FLOAT: |
804 return sizeof(GLfloat); // NOLINT | 804 return sizeof(GLfloat); // NOLINT |
805 case GL_FIXED: | 805 case GL_FIXED: |
806 return sizeof(GLfixed); // NOLINT | 806 return sizeof(GLfixed); // NOLINT |
| 807 case GL_HALF_FLOAT: |
| 808 return sizeof(GLushort); // NOLINT |
| 809 case GL_INT_2_10_10_10_REV: |
| 810 return sizeof(GLint); // NOLINT |
| 811 case GL_UNSIGNED_INT_2_10_10_10_REV: |
| 812 return sizeof(GLuint); // NOLINT |
807 default: | 813 default: |
808 return 0; | 814 return 0; |
809 } | 815 } |
810 } | 816 } |
811 | 817 |
812 size_t GLES2Util::GetComponentCountForGLTransformType(uint32_t type) { | 818 size_t GLES2Util::GetComponentCountForGLTransformType(uint32_t type) { |
813 switch (type) { | 819 switch (type) { |
814 case GL_TRANSLATE_X_CHROMIUM: | 820 case GL_TRANSLATE_X_CHROMIUM: |
815 case GL_TRANSLATE_Y_CHROMIUM: | 821 case GL_TRANSLATE_Y_CHROMIUM: |
816 return 1; | 822 return 1; |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1500 } | 1506 } |
1501 | 1507 |
1502 return true; | 1508 return true; |
1503 } | 1509 } |
1504 | 1510 |
1505 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" | 1511 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" |
1506 | 1512 |
1507 } // namespace gles2 | 1513 } // namespace gles2 |
1508 } // namespace gpu | 1514 } // namespace gpu |
1509 | 1515 |
OLD | NEW |