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

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

Issue 1669853002: Improve GLSL integer support (Closed) Base URL: https://skia.googlesource.com/skia.git@uploat_dratindirect
Patch Set: rebase 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/GrGLGpu.cpp ('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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 } 409 }
410 410
411 411
412 // glGetStringi was added in version 3.0 of both desktop and ES. 412 // glGetStringi was added in version 3.0 of both desktop and ES.
413 if (glVer >= GR_GL_VER(3, 0)) { 413 if (glVer >= GR_GL_VER(3, 0)) {
414 if (nullptr == fFunctions.fGetStringi) { 414 if (nullptr == fFunctions.fGetStringi) {
415 RETURN_FALSE_INTERFACE 415 RETURN_FALSE_INTERFACE
416 } 416 }
417 } 417 }
418 418
419 // glVertexAttribIPointer was added in version 3.0 of both desktop and ES.
420 if (glVer >= GR_GL_VER(3, 0)) {
421 if (NULL == fFunctions.fVertexAttribIPointer) {
422 RETURN_FALSE_INTERFACE
423 }
424 }
425
419 if (kGL_GrGLStandard == fStandard) { 426 if (kGL_GrGLStandard == fStandard) {
420 if (glVer >= GR_GL_VER(3, 0) || fExtensions.has("GL_ARB_vertex_array_obj ect")) { 427 if (glVer >= GR_GL_VER(3, 0) || fExtensions.has("GL_ARB_vertex_array_obj ect")) {
421 if (nullptr == fFunctions.fBindVertexArray || 428 if (nullptr == fFunctions.fBindVertexArray ||
422 nullptr == fFunctions.fDeleteVertexArrays || 429 nullptr == fFunctions.fDeleteVertexArrays ||
423 nullptr == fFunctions.fGenVertexArrays) { 430 nullptr == fFunctions.fGenVertexArrays) {
424 RETURN_FALSE_INTERFACE 431 RETURN_FALSE_INTERFACE
425 } 432 }
426 } 433 }
427 } else { 434 } else {
428 if (glVer >= GR_GL_VER(3,0) || fExtensions.has("GL_OES_vertex_array_obje ct")) { 435 if (glVer >= GR_GL_VER(3,0) || fExtensions.has("GL_OES_vertex_array_obje ct")) {
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 755
749 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" )) {
750 if (nullptr == fFunctions.fEGLCreateImage || 757 if (nullptr == fFunctions.fEGLCreateImage ||
751 nullptr == fFunctions.fEGLDestroyImage) { 758 nullptr == fFunctions.fEGLDestroyImage) {
752 RETURN_FALSE_INTERFACE 759 RETURN_FALSE_INTERFACE
753 } 760 }
754 } 761 }
755 762
756 return true; 763 return true;
757 } 764 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpu.cpp ('k') | src/gpu/gl/GrGLNoOpInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698