| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 } | 217 } |
| 218 } else { | 218 } else { |
| 219 // we must have FBOs | 219 // we must have FBOs |
| 220 delete interface; | 220 delete interface; |
| 221 return NULL; | 221 return NULL; |
| 222 } | 222 } |
| 223 | 223 |
| 224 if (extensions.has("GL_NV_path_rendering")) { | 224 if (extensions.has("GL_NV_path_rendering")) { |
| 225 GET_PROC_SUFFIX(PathCommands, NV); | 225 GET_PROC_SUFFIX(PathCommands, NV); |
| 226 GET_PROC_SUFFIX(PathCoords, NV); | 226 GET_PROC_SUFFIX(PathCoords, NV); |
| 227 GET_PROC_SUFFIX(PathSubCommands, NV); | |
| 228 GET_PROC_SUFFIX(PathSubCoords, NV); | |
| 229 GET_PROC_SUFFIX(PathString, NV); | |
| 230 GET_PROC_SUFFIX(PathGlyphs, NV); | |
| 231 GET_PROC_SUFFIX(PathGlyphRange, NV); | |
| 232 GET_PROC_SUFFIX(WeightPaths, NV); | |
| 233 GET_PROC_SUFFIX(CopyPath, NV); | |
| 234 GET_PROC_SUFFIX(InterpolatePaths, NV); | |
| 235 GET_PROC_SUFFIX(TransformPath, NV); | |
| 236 GET_PROC_SUFFIX(PathParameteriv, NV); | |
| 237 GET_PROC_SUFFIX(PathParameteri, NV); | 227 GET_PROC_SUFFIX(PathParameteri, NV); |
| 238 GET_PROC_SUFFIX(PathParameterfv, NV); | |
| 239 GET_PROC_SUFFIX(PathParameterf, NV); | 228 GET_PROC_SUFFIX(PathParameterf, NV); |
| 240 GET_PROC_SUFFIX(PathDashArray, NV); | |
| 241 GET_PROC_SUFFIX(GenPaths, NV); | 229 GET_PROC_SUFFIX(GenPaths, NV); |
| 242 GET_PROC_SUFFIX(DeletePaths, NV); | 230 GET_PROC_SUFFIX(DeletePaths, NV); |
| 243 GET_PROC_SUFFIX(IsPath, NV); | |
| 244 GET_PROC_SUFFIX(PathStencilFunc, NV); | 231 GET_PROC_SUFFIX(PathStencilFunc, NV); |
| 245 GET_PROC_SUFFIX(PathStencilDepthOffset, NV); | |
| 246 GET_PROC_SUFFIX(StencilFillPath, NV); | 232 GET_PROC_SUFFIX(StencilFillPath, NV); |
| 247 GET_PROC_SUFFIX(StencilStrokePath, NV); | 233 GET_PROC_SUFFIX(StencilStrokePath, NV); |
| 248 GET_PROC_SUFFIX(StencilFillPathInstanced, NV); | 234 GET_PROC_SUFFIX(StencilFillPathInstanced, NV); |
| 249 GET_PROC_SUFFIX(StencilStrokePathInstanced, NV); | 235 GET_PROC_SUFFIX(StencilStrokePathInstanced, NV); |
| 250 GET_PROC_SUFFIX(PathCoverDepthFunc, NV); | |
| 251 GET_PROC_SUFFIX(PathColorGen, NV); | |
| 252 GET_PROC_SUFFIX(PathTexGen, NV); | 236 GET_PROC_SUFFIX(PathTexGen, NV); |
| 253 GET_PROC_SUFFIX(PathFogGen, NV); | |
| 254 GET_PROC_SUFFIX(CoverFillPath, NV); | 237 GET_PROC_SUFFIX(CoverFillPath, NV); |
| 255 GET_PROC_SUFFIX(CoverStrokePath, NV); | 238 GET_PROC_SUFFIX(CoverStrokePath, NV); |
| 256 GET_PROC_SUFFIX(CoverFillPathInstanced, NV); | 239 GET_PROC_SUFFIX(CoverFillPathInstanced, NV); |
| 257 GET_PROC_SUFFIX(CoverStrokePathInstanced, NV); | 240 GET_PROC_SUFFIX(CoverStrokePathInstanced, NV); |
| 258 GET_PROC_SUFFIX(GetPathParameteriv, NV); | 241 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV); |
| 259 GET_PROC_SUFFIX(GetPathParameterfv, NV); | |
| 260 GET_PROC_SUFFIX(GetPathCommands, NV); | |
| 261 GET_PROC_SUFFIX(GetPathCoords, NV); | |
| 262 GET_PROC_SUFFIX(GetPathDashArray, NV); | |
| 263 GET_PROC_SUFFIX(GetPathMetrics, NV); | |
| 264 GET_PROC_SUFFIX(GetPathMetricRange, NV); | |
| 265 GET_PROC_SUFFIX(GetPathSpacing, NV); | |
| 266 GET_PROC_SUFFIX(GetPathColorGeniv, NV); | |
| 267 GET_PROC_SUFFIX(GetPathColorGenfv, NV); | |
| 268 GET_PROC_SUFFIX(GetPathTexGeniv, NV); | |
| 269 GET_PROC_SUFFIX(GetPathTexGenfv, NV); | |
| 270 GET_PROC_SUFFIX(IsPointInFillPath, NV); | |
| 271 GET_PROC_SUFFIX(IsPointInStrokePath, NV); | |
| 272 GET_PROC_SUFFIX(GetPathLength, NV); | |
| 273 GET_PROC_SUFFIX(PointAlongPath, NV); | |
| 274 } | 242 } |
| 275 | 243 |
| 276 if (extensions.has("GL_EXT_debug_marker")) { | 244 if (extensions.has("GL_EXT_debug_marker")) { |
| 277 GET_PROC_SUFFIX(InsertEventMarker, EXT); | 245 GET_PROC_SUFFIX(InsertEventMarker, EXT); |
| 278 GET_PROC_SUFFIX(PushGroupMarker, EXT); | 246 GET_PROC_SUFFIX(PushGroupMarker, EXT); |
| 279 GET_PROC_SUFFIX(PopGroupMarker, EXT); | 247 GET_PROC_SUFFIX(PopGroupMarker, EXT); |
| 280 } | 248 } |
| 281 | 249 |
| 282 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_ARB_invalidate_subdata"))
{ | 250 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_ARB_invalidate_subdata"))
{ |
| 283 GET_PROC(InvalidateBufferData); | 251 GET_PROC(InvalidateBufferData); |
| 284 GET_PROC(InvalidateBufferSubData); | 252 GET_PROC(InvalidateBufferSubData); |
| 285 GET_PROC(InvalidateFramebuffer); | 253 GET_PROC(InvalidateFramebuffer); |
| 286 GET_PROC(InvalidateSubFramebuffer); | 254 GET_PROC(InvalidateSubFramebuffer); |
| 287 GET_PROC(InvalidateTexImage); | 255 GET_PROC(InvalidateTexImage); |
| 288 GET_PROC(InvalidateTexSubImage); | 256 GET_PROC(InvalidateTexSubImage); |
| 289 } | 257 } |
| 290 | 258 |
| 259 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_ARB_program_interface_quer
y")) { |
| 260 GET_PROC(GetProgramResourceLocation); |
| 261 } |
| 262 |
| 291 interface->fStandard = kGL_GrGLStandard; | 263 interface->fStandard = kGL_GrGLStandard; |
| 292 interface->fExtensions.swap(&extensions); | 264 interface->fExtensions.swap(&extensions); |
| 293 | 265 |
| 294 return interface; | 266 return interface; |
| 295 } | 267 } |
| OLD | NEW |