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

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

Issue 1731333002: Revert of Include glGetMultisamplefv API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 &&
498 (glVer >= GR_GL_VER(4,3) || fExtensions.has("GL_ARB_program_interface_q uery"))) || 490 (glVer >= GR_GL_VER(4,3) || fExtensions.has("GL_ARB_program_interface_q uery"))) ||
499 (kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1))) { 491 (kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1))) {
500 if (nullptr == fFunctions.fGetProgramResourceLocation) { 492 if (nullptr == fFunctions.fGetProgramResourceLocation) {
501 RETURN_FALSE_INTERFACE 493 RETURN_FALSE_INTERFACE
502 } 494 }
503 } 495 }
504 496
505 if (kGLES_GrGLStandard == fStandard || glVer >= GR_GL_VER(4,1) || 497 if (kGLES_GrGLStandard == fStandard || glVer >= GR_GL_VER(4,1) ||
506 fExtensions.has("GL_ARB_ES2_compatibility")) { 498 fExtensions.has("GL_ARB_ES2_compatibility")) {
507 #if 0 // Enable this once Chrome gives us the function ptr 499 #if 0 // Enable this once Chrome gives us the function ptr
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 755
764 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base" )) { 756 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base" )) {
765 if (nullptr == fFunctions.fEGLCreateImage || 757 if (nullptr == fFunctions.fEGLCreateImage ||
766 nullptr == fFunctions.fEGLDestroyImage) { 758 nullptr == fFunctions.fEGLDestroyImage) {
767 RETURN_FALSE_INTERFACE 759 RETURN_FALSE_INTERFACE
768 } 760 }
769 } 761 }
770 762
771 return true; 763 return true;
772 } 764 }
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