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

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

Issue 580863004: Adding 3D lut color filter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Added generationID for 3D texture key Created 6 years, 2 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
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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 if (NULL == fFunctions.fGetQueryObjecti64v || 257 if (NULL == fFunctions.fGetQueryObjecti64v ||
258 NULL == fFunctions.fGetQueryObjectui64v) { 258 NULL == fFunctions.fGetQueryObjectui64v) {
259 RETURN_FALSE_INTERFACE 259 RETURN_FALSE_INTERFACE
260 } 260 }
261 } 261 }
262 if (glVer >= GR_GL_VER(3,3) || fExtensions.has("GL_ARB_timer_query")) { 262 if (glVer >= GR_GL_VER(3,3) || fExtensions.has("GL_ARB_timer_query")) {
263 if (NULL == fFunctions.fQueryCounter) { 263 if (NULL == fFunctions.fQueryCounter) {
264 RETURN_FALSE_INTERFACE 264 RETURN_FALSE_INTERFACE
265 } 265 }
266 } 266 }
267 if (glVer >= GR_GL_VER(1,2)) {
268 if (NULL == fFunctions.fTexImage3D ||
269 NULL == fFunctions.fTexSubImage3D) {
270 RETURN_FALSE_INTERFACE
271 }
272 }
267 } 273 }
268 274
269 // optional function on desktop before 1.3 275 // optional function on desktop before 1.3
270 if (kGL_GrGLStandard != fStandard || 276 if (kGL_GrGLStandard != fStandard ||
271 (glVer >= GR_GL_VER(1,3)) || 277 (glVer >= GR_GL_VER(1,3)) ||
272 fExtensions.has("GL_ARB_texture_compression")) { 278 fExtensions.has("GL_ARB_texture_compression")) {
273 if (NULL == fFunctions.fCompressedTexImage2D 279 if (NULL == fFunctions.fCompressedTexImage2D
274 #if 0 280 #if 0
275 || NULL == fFunctions.fCompressedTexSubImage2D 281 || NULL == fFunctions.fCompressedTexSubImage2D
276 #endif 282 #endif
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 NULL == fFunctions.fStencilThenCoverStrokePathInstanced || 494 NULL == fFunctions.fStencilThenCoverStrokePathInstanced ||
489 NULL == fFunctions.fProgramPathFragmentInputGen || 495 NULL == fFunctions.fProgramPathFragmentInputGen ||
490 NULL == fFunctions.fPathMemoryGlyphIndexArray) { 496 NULL == fFunctions.fPathMemoryGlyphIndexArray) {
491 RETURN_FALSE_INTERFACE 497 RETURN_FALSE_INTERFACE
492 } 498 }
493 } 499 }
494 } 500 }
495 501
496 return true; 502 return true;
497 } 503 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698