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

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

Issue 1720963002: Include glGetMultisamplefv API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: bug Created 4 years, 10 months 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/GrGLDefines.h ('k') | src/gpu/gl/GrGLNoOpInterface.h » ('j') | 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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 if (glVer >= GR_GL_VER(3,0) || 480 if (glVer >= GR_GL_VER(3,0) ||
481 (kGLES_GrGLStandard == fStandard && fExtensions.has("GL_EXT_map_buffer_r ange")) || 481 (kGLES_GrGLStandard == fStandard && fExtensions.has("GL_EXT_map_buffer_r ange")) ||
482 (kGL_GrGLStandard == fStandard && fExtensions.has("GL_ARB_map_buffer_ran ge"))) { 482 (kGL_GrGLStandard == fStandard && fExtensions.has("GL_ARB_map_buffer_ran ge"))) {
483 if (nullptr == fFunctions.fMapBufferRange || 483 if (nullptr == fFunctions.fMapBufferRange ||
484 nullptr == fFunctions.fFlushMappedBufferRange) { 484 nullptr == fFunctions.fFlushMappedBufferRange) {
485 RETURN_FALSE_INTERFACE; 485 RETURN_FALSE_INTERFACE;
486 } 486 }
487 } 487 }
488 488
489 if ((kGL_GrGLStandard == fStandard && 489 if ((kGL_GrGLStandard == fStandard &&
490 (glVer >= GR_GL_VER(3,2) || fExtensions.has("GL_ARB_texture_multisample "))) ||
491 (kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1))) {
492 if (NULL == fFunctions.fGetMultisamplefv) {
493 RETURN_FALSE_INTERFACE
494 }
495 }
496
497 if ((kGL_GrGLStandard == fStandard &&
490 (glVer >= GR_GL_VER(4,3) || fExtensions.has("GL_ARB_program_interface_q uery"))) || 498 (glVer >= GR_GL_VER(4,3) || fExtensions.has("GL_ARB_program_interface_q uery"))) ||
491 (kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1))) { 499 (kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1))) {
492 if (nullptr == fFunctions.fGetProgramResourceLocation) { 500 if (nullptr == fFunctions.fGetProgramResourceLocation) {
493 RETURN_FALSE_INTERFACE 501 RETURN_FALSE_INTERFACE
494 } 502 }
495 } 503 }
496 504
497 if (kGLES_GrGLStandard == fStandard || glVer >= GR_GL_VER(4,1) || 505 if (kGLES_GrGLStandard == fStandard || glVer >= GR_GL_VER(4,1) ||
498 fExtensions.has("GL_ARB_ES2_compatibility")) { 506 fExtensions.has("GL_ARB_ES2_compatibility")) {
499 #if 0 // Enable this once Chrome gives us the function ptr 507 #if 0 // Enable this once Chrome gives us the function ptr
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 763
756 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base" )) { 764 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base" )) {
757 if (nullptr == fFunctions.fEGLCreateImage || 765 if (nullptr == fFunctions.fEGLCreateImage ||
758 nullptr == fFunctions.fEGLDestroyImage) { 766 nullptr == fFunctions.fEGLDestroyImage) {
759 RETURN_FALSE_INTERFACE 767 RETURN_FALSE_INTERFACE
760 } 768 }
761 } 769 }
762 770
763 return true; 771 return true;
764 } 772 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLDefines.h ('k') | src/gpu/gl/GrGLNoOpInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698