| 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 #include "gl/GrGLInterface.h" | 9 #include "gl/GrGLInterface.h" |
| 10 #include "gl/GrGLUtil.h" | 10 #include "gl/GrGLUtil.h" |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 WGL_SET_PROC_SUFFIX(GetPathLength, NV); | 298 WGL_SET_PROC_SUFFIX(GetPathLength, NV); |
| 299 WGL_SET_PROC_SUFFIX(PointAlongPath, NV); | 299 WGL_SET_PROC_SUFFIX(PointAlongPath, NV); |
| 300 } | 300 } |
| 301 | 301 |
| 302 if (extensions.has("GL_EXT_debug_marker")) { | 302 if (extensions.has("GL_EXT_debug_marker")) { |
| 303 WGL_SET_PROC_SUFFIX(InsertEventMarker, EXT); | 303 WGL_SET_PROC_SUFFIX(InsertEventMarker, EXT); |
| 304 WGL_SET_PROC_SUFFIX(PushGroupMarker, EXT); | 304 WGL_SET_PROC_SUFFIX(PushGroupMarker, EXT); |
| 305 WGL_SET_PROC_SUFFIX(PopGroupMarker, EXT); | 305 WGL_SET_PROC_SUFFIX(PopGroupMarker, EXT); |
| 306 } | 306 } |
| 307 | 307 |
| 308 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_ARB_invalidate_subdata
")) { |
| 309 WGL_SET_PROC(InvalidateBufferData); |
| 310 WGL_SET_PROC(InvalidateBufferSubData); |
| 311 WGL_SET_PROC(InvalidateFramebuffer); |
| 312 WGL_SET_PROC(InvalidateSubFramebuffer); |
| 313 WGL_SET_PROC(InvalidateTexImage); |
| 314 WGL_SET_PROC(InvalidateTexSubImage); |
| 315 } |
| 316 |
| 308 interface->fStandard = kGL_GrGLStandard; | 317 interface->fStandard = kGL_GrGLStandard; |
| 309 interface->fExtensions.swap(&extensions); | 318 interface->fExtensions.swap(&extensions); |
| 310 | 319 |
| 311 return interface; | 320 return interface; |
| 312 } else { | 321 } else { |
| 313 return NULL; | 322 return NULL; |
| 314 } | 323 } |
| 315 } | 324 } |
| OLD | NEW |