Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: src/gpu/gl/GrGLInterface.cpp

Issue 1507373004: Use a pseudo-extension CHROMIUM_framebuffer_mixed_samples (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698