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

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

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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/GrGLGpuProgramCache.cpp ('k') | src/gpu/gl/GrGLPath.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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 } 563 }
564 } 564 }
565 565
566 if (kGL_GrGLStandard == fStandard) { 566 if (kGL_GrGLStandard == fStandard) {
567 if (glVer >= GR_GL_VER(3,1) || 567 if (glVer >= GR_GL_VER(3,1) ||
568 fExtensions.has("GL_EXT_draw_instanced") || fExtensions.has("GL_ARB_ draw_instanced")) { 568 fExtensions.has("GL_EXT_draw_instanced") || fExtensions.has("GL_ARB_ draw_instanced")) {
569 if (nullptr == fFunctions.fDrawArraysInstanced || 569 if (nullptr == fFunctions.fDrawArraysInstanced ||
570 nullptr == fFunctions.fDrawElementsInstanced) { 570 nullptr == fFunctions.fDrawElementsInstanced) {
571 RETURN_FALSE_INTERFACE 571 RETURN_FALSE_INTERFACE
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_draw_instanced")) { 575 if (glVer >= GR_GL_VER(3,0) || fExtensions.has("GL_EXT_draw_instanced")) {
576 if (nullptr == fFunctions.fDrawArraysInstanced || 576 if (nullptr == fFunctions.fDrawArraysInstanced ||
577 nullptr == fFunctions.fDrawElementsInstanced) { 577 nullptr == fFunctions.fDrawElementsInstanced) {
578 RETURN_FALSE_INTERFACE 578 RETURN_FALSE_INTERFACE
579 } 579 }
580 } 580 }
581 } 581 }
582 582
583 if (kGL_GrGLStandard == fStandard) { 583 if (kGL_GrGLStandard == fStandard) {
584 if (glVer >= GR_GL_VER(3,2) || fExtensions.has("GL_ARB_instanced_arrays" )) { 584 if (glVer >= GR_GL_VER(3,2) || fExtensions.has("GL_ARB_instanced_arrays" )) {
585 if (nullptr == fFunctions.fVertexAttribDivisor) { 585 if (nullptr == fFunctions.fVertexAttribDivisor) {
586 RETURN_FALSE_INTERFACE 586 RETURN_FALSE_INTERFACE
587 } 587 }
588 } 588 }
589 } else if (kGLES_GrGLStandard == fStandard) { 589 } else if (kGLES_GrGLStandard == fStandard) {
590 if (glVer >= GR_GL_VER(3,0) || fExtensions.has("GL_EXT_instanced_arrays" )) { 590 if (glVer >= GR_GL_VER(3,0) || fExtensions.has("GL_EXT_instanced_arrays" )) {
591 if (nullptr == fFunctions.fVertexAttribDivisor) { 591 if (nullptr == fFunctions.fVertexAttribDivisor) {
592 RETURN_FALSE_INTERFACE 592 RETURN_FALSE_INTERFACE
593 } 593 }
594 } 594 }
595 } 595 }
596 596
597 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,3)) || 597 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,3)) ||
598 (kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1))) { 598 (kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1))) {
599 if (NULL == fFunctions.fDrawArraysIndirect || 599 if (NULL == fFunctions.fDrawArraysIndirect ||
600 NULL == fFunctions.fDrawElementsIndirect) { 600 NULL == fFunctions.fDrawElementsIndirect) {
601 RETURN_FALSE_INTERFACE 601 RETURN_FALSE_INTERFACE
602 } 602 }
603 } 603 }
604 604
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 779
780 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base" )) { 780 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base" )) {
781 if (nullptr == fFunctions.fEGLCreateImage || 781 if (nullptr == fFunctions.fEGLCreateImage ||
782 nullptr == fFunctions.fEGLDestroyImage) { 782 nullptr == fFunctions.fEGLDestroyImage) {
783 RETURN_FALSE_INTERFACE 783 RETURN_FALSE_INTERFACE
784 } 784 }
785 } 785 }
786 786
787 return true; 787 return true;
788 } 788 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpuProgramCache.cpp ('k') | src/gpu/gl/GrGLPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698