OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 | 8 |
9 #include "gl/GrGLInterface.h" | 9 #include "gl/GrGLInterface.h" |
10 #include "gl/GrGLExtensions.h" | 10 #include "gl/GrGLExtensions.h" |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 } | 454 } |
455 | 455 |
456 if ((kGL_GrGLStandard == fStandard && | 456 if ((kGL_GrGLStandard == fStandard && |
457 (glVer >= GR_GL_VER(4,3) || fExtensions.has("GL_ARB_program_interface_q
uery"))) || | 457 (glVer >= GR_GL_VER(4,3) || fExtensions.has("GL_ARB_program_interface_q
uery"))) || |
458 (kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1))) { | 458 (kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1))) { |
459 if (NULL == fFunctions.fGetProgramResourceLocation) { | 459 if (NULL == fFunctions.fGetProgramResourceLocation) { |
460 RETURN_FALSE_INTERFACE | 460 RETURN_FALSE_INTERFACE |
461 } | 461 } |
462 } | 462 } |
463 | 463 |
| 464 if (kGLES_GrGLStandard == fStandard || glVer >= GR_GL_VER(4,1) || |
| 465 fExtensions.has("GL_ARB_ES2_compatibility")) { |
| 466 #if 0 // Enable this once Chrome gives us the function ptr |
| 467 if (NULL == fFunctions.fGetShaderPrecisionFormat) { |
| 468 RETURN_FALSE_INTERFACE |
| 469 } |
| 470 #endif |
| 471 } |
| 472 |
464 if (fExtensions.has("GL_NV_path_rendering")) { | 473 if (fExtensions.has("GL_NV_path_rendering")) { |
465 if (NULL == fFunctions.fPathCommands || | 474 if (NULL == fFunctions.fPathCommands || |
466 NULL == fFunctions.fPathCoords || | 475 NULL == fFunctions.fPathCoords || |
467 NULL == fFunctions.fPathParameteri || | 476 NULL == fFunctions.fPathParameteri || |
468 NULL == fFunctions.fPathParameterf || | 477 NULL == fFunctions.fPathParameterf || |
469 NULL == fFunctions.fGenPaths || | 478 NULL == fFunctions.fGenPaths || |
470 NULL == fFunctions.fDeletePaths || | 479 NULL == fFunctions.fDeletePaths || |
471 NULL == fFunctions.fIsPath || | 480 NULL == fFunctions.fIsPath || |
472 NULL == fFunctions.fPathStencilFunc || | 481 NULL == fFunctions.fPathStencilFunc || |
473 NULL == fFunctions.fStencilFillPath || | 482 NULL == fFunctions.fStencilFillPath || |
(...skipping 19 matching lines...) Expand all Loading... |
493 NULL == fFunctions.fStencilThenCoverStrokePathInstanced || | 502 NULL == fFunctions.fStencilThenCoverStrokePathInstanced || |
494 NULL == fFunctions.fProgramPathFragmentInputGen || | 503 NULL == fFunctions.fProgramPathFragmentInputGen || |
495 NULL == fFunctions.fPathMemoryGlyphIndexArray) { | 504 NULL == fFunctions.fPathMemoryGlyphIndexArray) { |
496 RETURN_FALSE_INTERFACE | 505 RETURN_FALSE_INTERFACE |
497 } | 506 } |
498 } | 507 } |
499 } | 508 } |
500 | 509 |
501 return true; | 510 return true; |
502 } | 511 } |
OLD | NEW |