OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 GLboolean transpose, | 1108 GLboolean transpose, |
1109 const GLfloat* value) { | 1109 const GLfloat* value) { |
1110 NOTREACHED() << "Unimplemented UniformMatrix4x2fv."; | 1110 NOTREACHED() << "Unimplemented UniformMatrix4x2fv."; |
1111 } | 1111 } |
1112 void MojoGLES2Impl::UniformMatrix4x3fv(GLint location, | 1112 void MojoGLES2Impl::UniformMatrix4x3fv(GLint location, |
1113 GLsizei count, | 1113 GLsizei count, |
1114 GLboolean transpose, | 1114 GLboolean transpose, |
1115 const GLfloat* value) { | 1115 const GLfloat* value) { |
1116 NOTREACHED() << "Unimplemented UniformMatrix4x3fv."; | 1116 NOTREACHED() << "Unimplemented UniformMatrix4x3fv."; |
1117 } | 1117 } |
| 1118 void MojoGLES2Impl::UniformMatrix4fvWithCustomMatrixCHROMIUM( |
| 1119 GLint location, |
| 1120 GLsizei count, |
| 1121 GLint custom_matrix_id, |
| 1122 GLboolean transpose, |
| 1123 const GLfloat* default_value) { |
| 1124 MojoGLES2MakeCurrent(context_); |
| 1125 glUniformMatrix4fvWithCustomMatrixCHROMIUM(location, count, custom_matrix_id, |
| 1126 transpose, default_value); |
| 1127 } |
1118 void MojoGLES2Impl::UseProgram(GLuint program) { | 1128 void MojoGLES2Impl::UseProgram(GLuint program) { |
1119 MojoGLES2MakeCurrent(context_); | 1129 MojoGLES2MakeCurrent(context_); |
1120 glUseProgram(program); | 1130 glUseProgram(program); |
1121 } | 1131 } |
1122 void MojoGLES2Impl::ValidateProgram(GLuint program) { | 1132 void MojoGLES2Impl::ValidateProgram(GLuint program) { |
1123 MojoGLES2MakeCurrent(context_); | 1133 MojoGLES2MakeCurrent(context_); |
1124 glValidateProgram(program); | 1134 glValidateProgram(program); |
1125 } | 1135 } |
1126 void MojoGLES2Impl::VertexAttrib1f(GLuint indx, GLfloat x) { | 1136 void MojoGLES2Impl::VertexAttrib1f(GLuint indx, GLfloat x) { |
1127 MojoGLES2MakeCurrent(context_); | 1137 MojoGLES2MakeCurrent(context_); |
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1912 const char* name) { | 1922 const char* name) { |
1913 MojoGLES2MakeCurrent(context_); | 1923 MojoGLES2MakeCurrent(context_); |
1914 glBindFragDataLocationEXT(program, colorNumber, name); | 1924 glBindFragDataLocationEXT(program, colorNumber, name); |
1915 } | 1925 } |
1916 GLint MojoGLES2Impl::GetFragDataIndexEXT(GLuint program, const char* name) { | 1926 GLint MojoGLES2Impl::GetFragDataIndexEXT(GLuint program, const char* name) { |
1917 MojoGLES2MakeCurrent(context_); | 1927 MojoGLES2MakeCurrent(context_); |
1918 return glGetFragDataIndexEXT(program, name); | 1928 return glGetFragDataIndexEXT(program, name); |
1919 } | 1929 } |
1920 | 1930 |
1921 } // namespace mojo | 1931 } // namespace mojo |
OLD | NEW |