OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 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 "gl/GrGLExtensions.h" | 10 #include "gl/GrGLExtensions.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 interface->fDrawBuffer = glDrawBuffer; | 82 interface->fDrawBuffer = glDrawBuffer; |
83 GR_GL_GET_PROC(DrawBuffers); | 83 GR_GL_GET_PROC(DrawBuffers); |
84 interface->fDrawElements = glDrawElements; | 84 interface->fDrawElements = glDrawElements; |
85 interface->fEnable = glEnable; | 85 interface->fEnable = glEnable; |
86 GR_GL_GET_PROC(EnableVertexAttribArray); | 86 GR_GL_GET_PROC(EnableVertexAttribArray); |
87 GR_GL_GET_PROC(EndQuery); | 87 GR_GL_GET_PROC(EndQuery); |
88 interface->fFinish = glFinish; | 88 interface->fFinish = glFinish; |
89 interface->fFlush = glFlush; | 89 interface->fFlush = glFlush; |
90 interface->fFrontFace = glFrontFace; | 90 interface->fFrontFace = glFrontFace; |
91 GR_GL_GET_PROC(GenBuffers); | 91 GR_GL_GET_PROC(GenBuffers); |
| 92 GR_GL_GET_PROC(GenerateMipmap); |
92 GR_GL_GET_PROC(GetBufferParameteriv); | 93 GR_GL_GET_PROC(GetBufferParameteriv); |
93 interface->fGetError = glGetError; | 94 interface->fGetError = glGetError; |
94 interface->fGetIntegerv = glGetIntegerv; | 95 interface->fGetIntegerv = glGetIntegerv; |
95 GR_GL_GET_PROC(GetQueryObjectiv); | 96 GR_GL_GET_PROC(GetQueryObjectiv); |
96 GR_GL_GET_PROC(GetQueryObjectuiv); | 97 GR_GL_GET_PROC(GetQueryObjectuiv); |
97 if (glVer >= GR_GL_VER(3,3) || extensions.has("GL_ARB_timer_query")) { | 98 if (glVer >= GR_GL_VER(3,3) || extensions.has("GL_ARB_timer_query")) { |
98 GR_GL_GET_PROC(GetQueryObjecti64v); | 99 GR_GL_GET_PROC(GetQueryObjecti64v); |
99 GR_GL_GET_PROC(GetQueryObjectui64v); | 100 GR_GL_GET_PROC(GetQueryObjectui64v); |
100 GR_GL_GET_PROC(QueryCounter); | 101 GR_GL_GET_PROC(QueryCounter); |
101 } else if (extensions.has("GL_EXT_timer_query")) { | 102 } else if (extensions.has("GL_EXT_timer_query")) { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 delete interface; | 214 delete interface; |
214 return NULL; | 215 return NULL; |
215 } | 216 } |
216 interface->fBindingsExported = kDesktop_GrGLBinding; | 217 interface->fBindingsExported = kDesktop_GrGLBinding; |
217 | 218 |
218 return interface; | 219 return interface; |
219 } else { | 220 } else { |
220 return NULL; | 221 return NULL; |
221 } | 222 } |
222 } | 223 } |
OLD | NEW |