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/GrGLInterface.h" | 10 #include "gl/GrGLInterface.h" |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 GR_GL_GET_PROC_SUFFIX(GetPathLength, NV); | 271 GR_GL_GET_PROC_SUFFIX(GetPathLength, NV); |
272 GR_GL_GET_PROC_SUFFIX(PointAlongPath, NV); | 272 GR_GL_GET_PROC_SUFFIX(PointAlongPath, NV); |
273 } | 273 } |
274 | 274 |
275 if (extensions.has("GL_EXT_debug_marker")) { | 275 if (extensions.has("GL_EXT_debug_marker")) { |
276 GR_GL_GET_PROC_SUFFIX(InsertEventMarker, EXT); | 276 GR_GL_GET_PROC_SUFFIX(InsertEventMarker, EXT); |
277 GR_GL_GET_PROC_SUFFIX(PushGroupMarker, EXT); | 277 GR_GL_GET_PROC_SUFFIX(PushGroupMarker, EXT); |
278 GR_GL_GET_PROC_SUFFIX(PopGroupMarker, EXT); | 278 GR_GL_GET_PROC_SUFFIX(PopGroupMarker, EXT); |
279 } | 279 } |
280 | 280 |
| 281 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_ARB_invalidate_subdata"))
{ |
| 282 GR_GL_GET_PROC(InvalidateBufferData); |
| 283 GR_GL_GET_PROC(InvalidateBufferSubData); |
| 284 GR_GL_GET_PROC(InvalidateFramebuffer); |
| 285 GR_GL_GET_PROC(InvalidateSubFramebuffer); |
| 286 GR_GL_GET_PROC(InvalidateTexImage); |
| 287 GR_GL_GET_PROC(InvalidateTexSubImage); |
| 288 } |
| 289 |
281 interface->fStandard = kGL_GrGLStandard; | 290 interface->fStandard = kGL_GrGLStandard; |
282 interface->fExtensions.swap(&extensions); | 291 interface->fExtensions.swap(&extensions); |
283 | 292 |
284 return interface; | 293 return interface; |
285 } | 294 } |
OLD | NEW |