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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 } | 534 } |
535 } | 535 } |
536 } | 536 } |
537 | 537 |
538 if (fExtensions.has("GL_EXT_raster_multisample")) { | 538 if (fExtensions.has("GL_EXT_raster_multisample")) { |
539 if (nullptr == fFunctions.fRasterSamples) { | 539 if (nullptr == fFunctions.fRasterSamples) { |
540 RETURN_FALSE_INTERFACE | 540 RETURN_FALSE_INTERFACE |
541 } | 541 } |
542 } | 542 } |
543 | 543 |
544 if (fExtensions.has("GL_NV_framebuffer_mixed_samples")) { | 544 if (fExtensions.has("GL_NV_framebuffer_mixed_samples") || |
| 545 fExtensions.has("GL_CHROMIUM_framebuffer_mixed_samples")) { |
545 if (nullptr == fFunctions.fCoverageModulation) { | 546 if (nullptr == fFunctions.fCoverageModulation) { |
546 RETURN_FALSE_INTERFACE | 547 RETURN_FALSE_INTERFACE |
547 } | 548 } |
548 } | 549 } |
549 | 550 |
550 if (kGL_GrGLStandard == fStandard) { | 551 if (kGL_GrGLStandard == fStandard) { |
551 if (glVer >= GR_GL_VER(3,1) || | 552 if (glVer >= GR_GL_VER(3,1) || |
552 fExtensions.has("GL_EXT_draw_instanced") || fExtensions.has("GL_ARB_
draw_instanced")) { | 553 fExtensions.has("GL_EXT_draw_instanced") || fExtensions.has("GL_ARB_
draw_instanced")) { |
553 if (nullptr == fFunctions.fDrawArraysInstanced || | 554 if (nullptr == fFunctions.fDrawArraysInstanced || |
554 nullptr == fFunctions.fDrawElementsInstanced) { | 555 nullptr == fFunctions.fDrawElementsInstanced) { |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 | 732 |
732 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base"
)) { | 733 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base"
)) { |
733 if (nullptr == fFunctions.fEGLCreateImage || | 734 if (nullptr == fFunctions.fEGLCreateImage || |
734 nullptr == fFunctions.fEGLDestroyImage) { | 735 nullptr == fFunctions.fEGLDestroyImage) { |
735 RETURN_FALSE_INTERFACE | 736 RETURN_FALSE_INTERFACE |
736 } | 737 } |
737 } | 738 } |
738 | 739 |
739 return true; | 740 return true; |
740 } | 741 } |
OLD | NEW |