OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "GrGLAssembleInterface.h" | 10 #include "GrGLAssembleInterface.h" |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 GET_PROC(Uniform3iv); | 176 GET_PROC(Uniform3iv); |
177 GET_PROC(Uniform4f); | 177 GET_PROC(Uniform4f); |
178 GET_PROC(Uniform4i); | 178 GET_PROC(Uniform4i); |
179 GET_PROC(Uniform4fv); | 179 GET_PROC(Uniform4fv); |
180 GET_PROC(Uniform4iv); | 180 GET_PROC(Uniform4iv); |
181 GET_PROC(UniformMatrix2fv); | 181 GET_PROC(UniformMatrix2fv); |
182 GET_PROC(UniformMatrix3fv); | 182 GET_PROC(UniformMatrix3fv); |
183 GET_PROC(UniformMatrix4fv); | 183 GET_PROC(UniformMatrix4fv); |
184 GET_PROC(UnmapBuffer); | 184 GET_PROC(UnmapBuffer); |
185 GET_PROC(UseProgram); | 185 GET_PROC(UseProgram); |
| 186 GET_PROC(VertexAttrib1f); |
| 187 GET_PROC(VertexAttrib2fv); |
| 188 GET_PROC(VertexAttrib3fv); |
186 GET_PROC(VertexAttrib4fv); | 189 GET_PROC(VertexAttrib4fv); |
187 GET_PROC(VertexAttribPointer); | 190 GET_PROC(VertexAttribPointer); |
188 GET_PROC(Viewport); | 191 GET_PROC(Viewport); |
189 GET_PROC(BindFragDataLocationIndexed); | 192 GET_PROC(BindFragDataLocationIndexed); |
190 | 193 |
191 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_vertex_array_object"))
{ | 194 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_vertex_array_object"))
{ |
192 // no ARB suffix for GL_ARB_vertex_array_object | 195 // no ARB suffix for GL_ARB_vertex_array_object |
193 GET_PROC(BindVertexArray); | 196 GET_PROC(BindVertexArray); |
194 GET_PROC(GenVertexArrays); | 197 GET_PROC(GenVertexArrays); |
195 GET_PROC(DeleteVertexArrays); | 198 GET_PROC(DeleteVertexArrays); |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 GET_PROC(Uniform3fv); | 408 GET_PROC(Uniform3fv); |
406 GET_PROC(Uniform3iv); | 409 GET_PROC(Uniform3iv); |
407 GET_PROC(Uniform4f); | 410 GET_PROC(Uniform4f); |
408 GET_PROC(Uniform4i); | 411 GET_PROC(Uniform4i); |
409 GET_PROC(Uniform4fv); | 412 GET_PROC(Uniform4fv); |
410 GET_PROC(Uniform4iv); | 413 GET_PROC(Uniform4iv); |
411 GET_PROC(UniformMatrix2fv); | 414 GET_PROC(UniformMatrix2fv); |
412 GET_PROC(UniformMatrix3fv); | 415 GET_PROC(UniformMatrix3fv); |
413 GET_PROC(UniformMatrix4fv); | 416 GET_PROC(UniformMatrix4fv); |
414 GET_PROC(UseProgram); | 417 GET_PROC(UseProgram); |
| 418 GET_PROC(VertexAttrib1f); |
| 419 GET_PROC(VertexAttrib2fv); |
| 420 GET_PROC(VertexAttrib3fv); |
415 GET_PROC(VertexAttrib4fv); | 421 GET_PROC(VertexAttrib4fv); |
416 GET_PROC(VertexAttribPointer); | 422 GET_PROC(VertexAttribPointer); |
417 GET_PROC(Viewport); | 423 GET_PROC(Viewport); |
418 GET_PROC(BindFramebuffer); | 424 GET_PROC(BindFramebuffer); |
419 GET_PROC(BindRenderbuffer); | 425 GET_PROC(BindRenderbuffer); |
420 GET_PROC(CheckFramebufferStatus); | 426 GET_PROC(CheckFramebufferStatus); |
421 GET_PROC(DeleteFramebuffers); | 427 GET_PROC(DeleteFramebuffers); |
422 GET_PROC(DeleteRenderbuffers); | 428 GET_PROC(DeleteRenderbuffers); |
423 GET_PROC(FramebufferRenderbuffer); | 429 GET_PROC(FramebufferRenderbuffer); |
424 GET_PROC(FramebufferTexture2D); | 430 GET_PROC(FramebufferTexture2D); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, NV); | 511 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, NV); |
506 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV); | 512 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV); |
507 GET_PROC_SUFFIX(PathMemoryGlyphIndexArray, NV); | 513 GET_PROC_SUFFIX(PathMemoryGlyphIndexArray, NV); |
508 } | 514 } |
509 | 515 |
510 interface->fStandard = kGLES_GrGLStandard; | 516 interface->fStandard = kGLES_GrGLStandard; |
511 interface->fExtensions.swap(&extensions); | 517 interface->fExtensions.swap(&extensions); |
512 | 518 |
513 return interface; | 519 return interface; |
514 } | 520 } |
OLD | NEW |