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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 WGL_SET_PROC(CreateShader); | 145 WGL_SET_PROC(CreateShader); |
146 WGL_SET_PROC(DeleteBuffers); | 146 WGL_SET_PROC(DeleteBuffers); |
147 WGL_SET_PROC(DeleteQueries); | 147 WGL_SET_PROC(DeleteQueries); |
148 WGL_SET_PROC(DeleteProgram); | 148 WGL_SET_PROC(DeleteProgram); |
149 WGL_SET_PROC(DeleteShader); | 149 WGL_SET_PROC(DeleteShader); |
150 WGL_SET_PROC(DisableVertexAttribArray); | 150 WGL_SET_PROC(DisableVertexAttribArray); |
151 WGL_SET_PROC(DrawBuffers); | 151 WGL_SET_PROC(DrawBuffers); |
152 WGL_SET_PROC(EnableVertexAttribArray); | 152 WGL_SET_PROC(EnableVertexAttribArray); |
153 WGL_SET_PROC(EndQuery); | 153 WGL_SET_PROC(EndQuery); |
154 WGL_SET_PROC(GenBuffers); | 154 WGL_SET_PROC(GenBuffers); |
| 155 WGL_SET_PROC(GenerateMipmap); |
155 WGL_SET_PROC(GenQueries); | 156 WGL_SET_PROC(GenQueries); |
156 WGL_SET_PROC(GetBufferParameteriv); | 157 WGL_SET_PROC(GetBufferParameteriv); |
157 WGL_SET_PROC(GetQueryiv); | 158 WGL_SET_PROC(GetQueryiv); |
158 WGL_SET_PROC(GetQueryObjectiv); | 159 WGL_SET_PROC(GetQueryObjectiv); |
159 WGL_SET_PROC(GetQueryObjectuiv); | 160 WGL_SET_PROC(GetQueryObjectuiv); |
160 if (glVer > GR_GL_VER(3,3) || extensions.has("GL_ARB_timer_query")) { | 161 if (glVer > GR_GL_VER(3,3) || extensions.has("GL_ARB_timer_query")) { |
161 WGL_SET_PROC(GetQueryObjecti64v); | 162 WGL_SET_PROC(GetQueryObjecti64v); |
162 WGL_SET_PROC(GetQueryObjectui64v); | 163 WGL_SET_PROC(GetQueryObjectui64v); |
163 WGL_SET_PROC(QueryCounter); | 164 WGL_SET_PROC(QueryCounter); |
164 } else if (extensions.has("GL_EXT_timer_query")) { | 165 } else if (extensions.has("GL_EXT_timer_query")) { |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 WGL_SET_PROC_SUFFIX(PointAlongPath, NV); | 307 WGL_SET_PROC_SUFFIX(PointAlongPath, NV); |
307 } | 308 } |
308 | 309 |
309 interface->fBindingsExported = kDesktop_GrGLBinding; | 310 interface->fBindingsExported = kDesktop_GrGLBinding; |
310 | 311 |
311 return interface; | 312 return interface; |
312 } else { | 313 } else { |
313 return NULL; | 314 return NULL; |
314 } | 315 } |
315 } | 316 } |
OLD | NEW |