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

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

Issue 1869063005: Add GLSL support for texelFetch (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_renaem
Patch Set: rebase 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/GrGLCaps.cpp ('k') | src/gpu/glsl/GrGLSLCaps.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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 RETURN_FALSE_INTERFACE 407 RETURN_FALSE_INTERFACE
408 } 408 }
409 } 409 }
410 410
411 if (kGL_GrGLStandard == fStandard) { 411 if (kGL_GrGLStandard == fStandard) {
412 if (glVer >= GR_GL_VER(3,1)) { 412 if (glVer >= GR_GL_VER(3,1)) {
413 if (nullptr == fFunctions.fTexBuffer) { 413 if (nullptr == fFunctions.fTexBuffer) {
414 RETURN_FALSE_INTERFACE; 414 RETURN_FALSE_INTERFACE;
415 } 415 }
416 } 416 }
417 if (glVer >= GR_GL_VER(4,3)) {
418 if (nullptr == fFunctions.fTexBufferRange) {
419 RETURN_FALSE_INTERFACE;
420 }
421 }
417 } else { 422 } else {
418 if (glVer >= GR_GL_VER(3,2) || fExtensions.has("GL_OES_texture_buffer") || 423 if (glVer >= GR_GL_VER(3,2) || fExtensions.has("GL_OES_texture_buffer") ||
419 fExtensions.has("GL_EXT_texture_buffer")) { 424 fExtensions.has("GL_EXT_texture_buffer")) {
420 if (nullptr == fFunctions.fTexBuffer) { 425 if (nullptr == fFunctions.fTexBuffer ||
426 nullptr == fFunctions.fTexBufferRange) {
421 RETURN_FALSE_INTERFACE; 427 RETURN_FALSE_INTERFACE;
422 } 428 }
423 } 429 }
424 } 430 }
425 431
426 if (kGL_GrGLStandard == fStandard) { 432 if (kGL_GrGLStandard == fStandard) {
427 if (glVer >= GR_GL_VER(3, 0) || fExtensions.has("GL_ARB_vertex_array_obj ect")) { 433 if (glVer >= GR_GL_VER(3, 0) || fExtensions.has("GL_ARB_vertex_array_obj ect")) {
428 if (nullptr == fFunctions.fBindVertexArray || 434 if (nullptr == fFunctions.fBindVertexArray ||
429 nullptr == fFunctions.fDeleteVertexArrays || 435 nullptr == fFunctions.fDeleteVertexArrays ||
430 nullptr == fFunctions.fGenVertexArrays) { 436 nullptr == fFunctions.fGenVertexArrays) {
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 785
780 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base" )) { 786 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base" )) {
781 if (nullptr == fFunctions.fEGLCreateImage || 787 if (nullptr == fFunctions.fEGLCreateImage ||
782 nullptr == fFunctions.fEGLDestroyImage) { 788 nullptr == fFunctions.fEGLDestroyImage) {
783 RETURN_FALSE_INTERFACE 789 RETURN_FALSE_INTERFACE
784 } 790 }
785 } 791 }
786 792
787 return true; 793 return true;
788 } 794 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/glsl/GrGLSLCaps.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698