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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 // NV_path_rendering v1.2 (These methods may not be present) | 271 // NV_path_rendering v1.2 (These methods may not be present) |
272 GET_PROC_SUFFIX(StencilThenCoverFillPath, NV); | 272 GET_PROC_SUFFIX(StencilThenCoverFillPath, NV); |
273 GET_PROC_SUFFIX(StencilThenCoverStrokePath, NV); | 273 GET_PROC_SUFFIX(StencilThenCoverStrokePath, NV); |
274 GET_PROC_SUFFIX(StencilThenCoverFillPathInstanced, NV); | 274 GET_PROC_SUFFIX(StencilThenCoverFillPathInstanced, NV); |
275 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, NV); | 275 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, NV); |
276 // NV_path_rendering v1.3 (These methods may not be present) | 276 // NV_path_rendering v1.3 (These methods may not be present) |
277 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV); | 277 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV); |
278 GET_PROC_SUFFIX(PathMemoryGlyphIndexArray, NV); | 278 GET_PROC_SUFFIX(PathMemoryGlyphIndexArray, NV); |
279 } | 279 } |
280 | 280 |
| 281 if (extensions.has("GL_NV_framebuffer_mixed_samples")) { |
| 282 GET_PROC_SUFFIX(CoverageModulation, NV); |
| 283 } |
| 284 |
281 if (extensions.has("GL_EXT_debug_marker")) { | 285 if (extensions.has("GL_EXT_debug_marker")) { |
282 GET_PROC_SUFFIX(InsertEventMarker, EXT); | 286 GET_PROC_SUFFIX(InsertEventMarker, EXT); |
283 GET_PROC_SUFFIX(PushGroupMarker, EXT); | 287 GET_PROC_SUFFIX(PushGroupMarker, EXT); |
284 GET_PROC_SUFFIX(PopGroupMarker, EXT); | 288 GET_PROC_SUFFIX(PopGroupMarker, EXT); |
285 } | 289 } |
286 | 290 |
287 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_ARB_invalidate_subdata"))
{ | 291 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_ARB_invalidate_subdata"))
{ |
288 GET_PROC(InvalidateBufferData); | 292 GET_PROC(InvalidateBufferData); |
289 GET_PROC(InvalidateBufferSubData); | 293 GET_PROC(InvalidateBufferSubData); |
290 GET_PROC(InvalidateFramebuffer); | 294 GET_PROC(InvalidateFramebuffer); |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 GET_PROC_SUFFIX(CoverFillPathInstanced, NV); | 516 GET_PROC_SUFFIX(CoverFillPathInstanced, NV); |
513 GET_PROC_SUFFIX(CoverStrokePathInstanced, NV); | 517 GET_PROC_SUFFIX(CoverStrokePathInstanced, NV); |
514 GET_PROC_SUFFIX(StencilThenCoverFillPath, NV); | 518 GET_PROC_SUFFIX(StencilThenCoverFillPath, NV); |
515 GET_PROC_SUFFIX(StencilThenCoverStrokePath, NV); | 519 GET_PROC_SUFFIX(StencilThenCoverStrokePath, NV); |
516 GET_PROC_SUFFIX(StencilThenCoverFillPathInstanced, NV); | 520 GET_PROC_SUFFIX(StencilThenCoverFillPathInstanced, NV); |
517 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, NV); | 521 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, NV); |
518 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV); | 522 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV); |
519 GET_PROC_SUFFIX(PathMemoryGlyphIndexArray, NV); | 523 GET_PROC_SUFFIX(PathMemoryGlyphIndexArray, NV); |
520 } | 524 } |
521 | 525 |
| 526 if (extensions.has("GL_NV_framebuffer_mixed_samples")) { |
| 527 GET_PROC_SUFFIX(CoverageModulation, NV); |
| 528 } |
| 529 |
522 interface->fStandard = kGLES_GrGLStandard; | 530 interface->fStandard = kGLES_GrGLStandard; |
523 interface->fExtensions.swap(&extensions); | 531 interface->fExtensions.swap(&extensions); |
524 | 532 |
525 return interface; | 533 return interface; |
526 } | 534 } |
OLD | NEW |