Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_utils.cc

Issue 1546303002: Command Buffer: add types for vertexAttribPointer against gles3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed zmo@'s feedback: merge some code into this one Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698