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 /* This file is meant to be included "inline" the implementation that is using t
he function. | 9 /* This file is meant to be included "inline" the implementation that is using t
he function. |
10 * The platform native GL implementation header file should be included before t
his file. | 10 * The platform native GL implementation header file should be included before t
his file. |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 GET_LINKED(InvalidateSubFramebuffer); | 242 GET_LINKED(InvalidateSubFramebuffer); |
243 #else | 243 #else |
244 GET_PROC(InvalidateFramebuffer); | 244 GET_PROC(InvalidateFramebuffer); |
245 GET_PROC(InvalidateSubFramebuffer); | 245 GET_PROC(InvalidateSubFramebuffer); |
246 #endif | 246 #endif |
247 GET_PROC(InvalidateBufferData); | 247 GET_PROC(InvalidateBufferData); |
248 GET_PROC(InvalidateBufferSubData); | 248 GET_PROC(InvalidateBufferSubData); |
249 GET_PROC(InvalidateTexImage); | 249 GET_PROC(InvalidateTexImage); |
250 GET_PROC(InvalidateTexSubImage); | 250 GET_PROC(InvalidateTexSubImage); |
251 | 251 |
| 252 #if GL_ES_VERSION_3_1 |
| 253 GET_LINKED(GetProgramResourceLocation); |
| 254 #else |
| 255 if (version >= GR_GL_VER(3,1)) { |
| 256 GET_PROC(GetProgramResourceLocation); |
| 257 } |
| 258 #endif |
| 259 |
| 260 if (extensions.has("GL_NV_path_rendering")) { |
| 261 GET_PROC_SUFFIX(MatrixLoadf, EXT); |
| 262 GET_PROC_SUFFIX(MatrixLoadIdentity, EXT); |
| 263 GET_PROC_SUFFIX(PathCommands, NV); |
| 264 GET_PROC_SUFFIX(PathCoords, NV); |
| 265 GET_PROC_SUFFIX(PathParameteri, NV); |
| 266 GET_PROC_SUFFIX(PathParameterf, NV); |
| 267 GET_PROC_SUFFIX(GenPaths, NV); |
| 268 GET_PROC_SUFFIX(DeletePaths, NV); |
| 269 GET_PROC_SUFFIX(PathStencilFunc, NV); |
| 270 GET_PROC_SUFFIX(StencilFillPath, NV); |
| 271 GET_PROC_SUFFIX(StencilStrokePath, NV); |
| 272 GET_PROC_SUFFIX(StencilFillPathInstanced, NV); |
| 273 GET_PROC_SUFFIX(StencilStrokePathInstanced, NV); |
| 274 GET_PROC_SUFFIX(CoverFillPath, NV); |
| 275 GET_PROC_SUFFIX(CoverStrokePath, NV); |
| 276 GET_PROC_SUFFIX(CoverFillPathInstanced, NV); |
| 277 GET_PROC_SUFFIX(CoverStrokePathInstanced, NV); |
| 278 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV); |
| 279 } |
| 280 |
252 interface->fStandard = kGLES_GrGLStandard; | 281 interface->fStandard = kGLES_GrGLStandard; |
253 interface->fExtensions.swap(&extensions); | 282 interface->fExtensions.swap(&extensions); |
254 | 283 |
255 return interface; | 284 return interface; |
256 } | 285 } |
OLD | NEW |