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

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

Issue 1666803002: Add GL indirect drawing APIs (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_rastermultisample
Patch Set: formatting 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') | 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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 } 572 }
573 } 573 }
574 } else if (kGLES_GrGLStandard == fStandard) { 574 } else if (kGLES_GrGLStandard == fStandard) {
575 if (glVer >= GR_GL_VER(3,0) || fExtensions.has("GL_EXT_instanced_arrays" )) { 575 if (glVer >= GR_GL_VER(3,0) || fExtensions.has("GL_EXT_instanced_arrays" )) {
576 if (nullptr == fFunctions.fVertexAttribDivisor) { 576 if (nullptr == fFunctions.fVertexAttribDivisor) {
577 RETURN_FALSE_INTERFACE 577 RETURN_FALSE_INTERFACE
578 } 578 }
579 } 579 }
580 } 580 }
581 581
582 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,3)) ||
583 (kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1))) {
584 if (NULL == fFunctions.fDrawArraysIndirect ||
585 NULL == fFunctions.fDrawElementsIndirect) {
586 RETURN_FALSE_INTERFACE
587 }
588 }
589
590 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,3)) ||
591 (kGLES_GrGLStandard == fStandard && fExtensions.has("GL_EXT_multi_draw_i ndirect"))) {
592 if (NULL == fFunctions.fMultiDrawArraysIndirect ||
593 NULL == fFunctions.fMultiDrawElementsIndirect) {
594 RETURN_FALSE_INTERFACE
595 }
596 }
597
582 if (fExtensions.has("GL_NV_bindless_texture")) { 598 if (fExtensions.has("GL_NV_bindless_texture")) {
583 if (nullptr == fFunctions.fGetTextureHandle || 599 if (nullptr == fFunctions.fGetTextureHandle ||
584 nullptr == fFunctions.fGetTextureSamplerHandle || 600 nullptr == fFunctions.fGetTextureSamplerHandle ||
585 nullptr == fFunctions.fMakeTextureHandleResident || 601 nullptr == fFunctions.fMakeTextureHandleResident ||
586 nullptr == fFunctions.fMakeTextureHandleNonResident || 602 nullptr == fFunctions.fMakeTextureHandleNonResident ||
587 nullptr == fFunctions.fGetImageHandle || 603 nullptr == fFunctions.fGetImageHandle ||
588 nullptr == fFunctions.fMakeImageHandleResident || 604 nullptr == fFunctions.fMakeImageHandleResident ||
589 nullptr == fFunctions.fMakeImageHandleNonResident || 605 nullptr == fFunctions.fMakeImageHandleNonResident ||
590 nullptr == fFunctions.fIsTextureHandleResident || 606 nullptr == fFunctions.fIsTextureHandleResident ||
591 nullptr == fFunctions.fIsImageHandleResident || 607 nullptr == fFunctions.fIsImageHandleResident ||
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 748
733 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base" )) { 749 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base" )) {
734 if (nullptr == fFunctions.fEGLCreateImage || 750 if (nullptr == fFunctions.fEGLCreateImage ||
735 nullptr == fFunctions.fEGLDestroyImage) { 751 nullptr == fFunctions.fEGLDestroyImage) {
736 RETURN_FALSE_INTERFACE 752 RETURN_FALSE_INTERFACE
737 } 753 }
738 } 754 }
739 755
740 return true; 756 return true;
741 } 757 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLDefines.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698