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

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

Issue 326423003: Add ifdef to not use function pointer that we don't have yet on Chromium?? (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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 | « no previous file | 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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 NULL == fFunctions.fPointAlongPath) { 350 NULL == fFunctions.fPointAlongPath) {
351 RETURN_FALSE_INTERFACE 351 RETURN_FALSE_INTERFACE
352 } 352 }
353 } 353 }
354 } 354 }
355 355
356 // optional function on desktop before 1.3 356 // optional function on desktop before 1.3
357 if (kGL_GrGLStandard != fStandard || 357 if (kGL_GrGLStandard != fStandard ||
358 (glVer >= GR_GL_VER(1,3)) || 358 (glVer >= GR_GL_VER(1,3)) ||
359 fExtensions.has("GL_ARB_texture_compression")) { 359 fExtensions.has("GL_ARB_texture_compression")) {
360 if (NULL == fFunctions.fCompressedTexImage2D || 360 if (NULL == fFunctions.fCompressedTexImage2D
361 NULL == fFunctions.fCompressedTexSubImage2D) { 361 #if 0
362 || NULL == fFunctions.fCompressedTexSubImage2D
363 #endif
364 ) {
362 RETURN_FALSE_INTERFACE 365 RETURN_FALSE_INTERFACE
363 } 366 }
364 } 367 }
365 368
366 // part of desktop GL, but not ES 369 // part of desktop GL, but not ES
367 if (kGL_GrGLStandard == fStandard && 370 if (kGL_GrGLStandard == fStandard &&
368 (NULL == fFunctions.fGetTexLevelParameteriv || 371 (NULL == fFunctions.fGetTexLevelParameteriv ||
369 NULL == fFunctions.fDrawBuffer || 372 NULL == fFunctions.fDrawBuffer ||
370 NULL == fFunctions.fReadBuffer)) { 373 NULL == fFunctions.fReadBuffer)) {
371 RETURN_FALSE_INTERFACE 374 RETURN_FALSE_INTERFACE
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 if (glVer >= GR_GL_VER(3,0) || 521 if (glVer >= GR_GL_VER(3,0) ||
519 (kGLES_GrGLStandard == fStandard && fExtensions.has("GL_EXT_map_buffer_r ange")) || 522 (kGLES_GrGLStandard == fStandard && fExtensions.has("GL_EXT_map_buffer_r ange")) ||
520 (kGL_GrGLStandard == fStandard && fExtensions.has("GL_ARB_map_buffer_ran ge"))) { 523 (kGL_GrGLStandard == fStandard && fExtensions.has("GL_ARB_map_buffer_ran ge"))) {
521 if (NULL == fFunctions.fMapBufferRange || 524 if (NULL == fFunctions.fMapBufferRange ||
522 NULL == fFunctions.fFlushMappedBufferRange) { 525 NULL == fFunctions.fFlushMappedBufferRange) {
523 RETURN_FALSE_INTERFACE; 526 RETURN_FALSE_INTERFACE;
524 } 527 }
525 } 528 }
526 return true; 529 return true;
527 } 530 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698