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

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

Issue 778703003: Add glGetShaderPrecisionFormat (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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/GrGLAssembleInterface.cpp ('k') | 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 } 454 }
455 455
456 if ((kGL_GrGLStandard == fStandard && 456 if ((kGL_GrGLStandard == fStandard &&
457 (glVer >= GR_GL_VER(4,3) || fExtensions.has("GL_ARB_program_interface_q uery"))) || 457 (glVer >= GR_GL_VER(4,3) || fExtensions.has("GL_ARB_program_interface_q uery"))) ||
458 (kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1))) { 458 (kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1))) {
459 if (NULL == fFunctions.fGetProgramResourceLocation) { 459 if (NULL == fFunctions.fGetProgramResourceLocation) {
460 RETURN_FALSE_INTERFACE 460 RETURN_FALSE_INTERFACE
461 } 461 }
462 } 462 }
463 463
464 if (kGLES_GrGLStandard == fStandard || glVer >= GR_GL_VER(4,1) ||
465 fExtensions.has("GL_ARB_ES2_compatibility")) {
466 #if 0 // Enable this once Chrome gives us the function ptr
467 if (NULL == fFunctions.fGetShaderPrecisionFormat) {
468 RETURN_FALSE_INTERFACE
469 }
470 #endif
471 }
472
464 if (fExtensions.has("GL_NV_path_rendering")) { 473 if (fExtensions.has("GL_NV_path_rendering")) {
465 if (NULL == fFunctions.fPathCommands || 474 if (NULL == fFunctions.fPathCommands ||
466 NULL == fFunctions.fPathCoords || 475 NULL == fFunctions.fPathCoords ||
467 NULL == fFunctions.fPathParameteri || 476 NULL == fFunctions.fPathParameteri ||
468 NULL == fFunctions.fPathParameterf || 477 NULL == fFunctions.fPathParameterf ||
469 NULL == fFunctions.fGenPaths || 478 NULL == fFunctions.fGenPaths ||
470 NULL == fFunctions.fDeletePaths || 479 NULL == fFunctions.fDeletePaths ||
471 NULL == fFunctions.fIsPath || 480 NULL == fFunctions.fIsPath ||
472 NULL == fFunctions.fPathStencilFunc || 481 NULL == fFunctions.fPathStencilFunc ||
473 NULL == fFunctions.fStencilFillPath || 482 NULL == fFunctions.fStencilFillPath ||
(...skipping 19 matching lines...) Expand all
493 NULL == fFunctions.fStencilThenCoverStrokePathInstanced || 502 NULL == fFunctions.fStencilThenCoverStrokePathInstanced ||
494 NULL == fFunctions.fProgramPathFragmentInputGen || 503 NULL == fFunctions.fProgramPathFragmentInputGen ||
495 NULL == fFunctions.fPathMemoryGlyphIndexArray) { 504 NULL == fFunctions.fPathMemoryGlyphIndexArray) {
496 RETURN_FALSE_INTERFACE 505 RETURN_FALSE_INTERFACE
497 } 506 }
498 } 507 }
499 } 508 }
500 509
501 return true; 510 return true;
502 } 511 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLAssembleInterface.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698