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

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

Issue 403563002: Add IsPath to GrGLInterface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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/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 27 matching lines...) Expand all
38 const GrGLInterface* GrGLInterfaceRemoveNVPR(const GrGLInterface* interface) { 38 const GrGLInterface* GrGLInterfaceRemoveNVPR(const GrGLInterface* interface) {
39 GrGLInterface* newInterface = GrGLInterface::NewClone(interface); 39 GrGLInterface* newInterface = GrGLInterface::NewClone(interface);
40 40
41 newInterface->fExtensions.remove("GL_NV_path_rendering"); 41 newInterface->fExtensions.remove("GL_NV_path_rendering");
42 newInterface->fFunctions.fPathCommands = NULL; 42 newInterface->fFunctions.fPathCommands = NULL;
43 newInterface->fFunctions.fPathCoords = NULL; 43 newInterface->fFunctions.fPathCoords = NULL;
44 newInterface->fFunctions.fPathParameteri = NULL; 44 newInterface->fFunctions.fPathParameteri = NULL;
45 newInterface->fFunctions.fPathParameterf = NULL; 45 newInterface->fFunctions.fPathParameterf = NULL;
46 newInterface->fFunctions.fGenPaths = NULL; 46 newInterface->fFunctions.fGenPaths = NULL;
47 newInterface->fFunctions.fDeletePaths = NULL; 47 newInterface->fFunctions.fDeletePaths = NULL;
48 newInterface->fFunctions.fIsPath = NULL;
48 newInterface->fFunctions.fPathStencilFunc = NULL; 49 newInterface->fFunctions.fPathStencilFunc = NULL;
49 newInterface->fFunctions.fStencilFillPath = NULL; 50 newInterface->fFunctions.fStencilFillPath = NULL;
50 newInterface->fFunctions.fStencilStrokePath = NULL; 51 newInterface->fFunctions.fStencilStrokePath = NULL;
51 newInterface->fFunctions.fStencilFillPathInstanced = NULL; 52 newInterface->fFunctions.fStencilFillPathInstanced = NULL;
52 newInterface->fFunctions.fStencilStrokePathInstanced = NULL; 53 newInterface->fFunctions.fStencilStrokePathInstanced = NULL;
53 newInterface->fFunctions.fPathTexGen = NULL; 54 newInterface->fFunctions.fPathTexGen = NULL;
54 newInterface->fFunctions.fCoverFillPath = NULL; 55 newInterface->fFunctions.fCoverFillPath = NULL;
55 newInterface->fFunctions.fCoverStrokePath = NULL; 56 newInterface->fFunctions.fCoverStrokePath = NULL;
56 newInterface->fFunctions.fCoverFillPathInstanced = NULL; 57 newInterface->fFunctions.fCoverFillPathInstanced = NULL;
57 newInterface->fFunctions.fCoverStrokePathInstanced = NULL; 58 newInterface->fFunctions.fCoverStrokePathInstanced = NULL;
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 } 451 }
451 } 452 }
452 453
453 if (fExtensions.has("GL_NV_path_rendering")) { 454 if (fExtensions.has("GL_NV_path_rendering")) {
454 if (NULL == fFunctions.fPathCommands || 455 if (NULL == fFunctions.fPathCommands ||
455 NULL == fFunctions.fPathCoords || 456 NULL == fFunctions.fPathCoords ||
456 NULL == fFunctions.fPathParameteri || 457 NULL == fFunctions.fPathParameteri ||
457 NULL == fFunctions.fPathParameterf || 458 NULL == fFunctions.fPathParameterf ||
458 NULL == fFunctions.fGenPaths || 459 NULL == fFunctions.fGenPaths ||
459 NULL == fFunctions.fDeletePaths || 460 NULL == fFunctions.fDeletePaths ||
461 NULL == fFunctions.fIsPath ||
460 NULL == fFunctions.fPathStencilFunc || 462 NULL == fFunctions.fPathStencilFunc ||
461 NULL == fFunctions.fStencilFillPath || 463 NULL == fFunctions.fStencilFillPath ||
462 NULL == fFunctions.fStencilStrokePath || 464 NULL == fFunctions.fStencilStrokePath ||
463 NULL == fFunctions.fStencilFillPathInstanced || 465 NULL == fFunctions.fStencilFillPathInstanced ||
464 NULL == fFunctions.fStencilStrokePathInstanced || 466 NULL == fFunctions.fStencilStrokePathInstanced ||
465 NULL == fFunctions.fCoverFillPath || 467 NULL == fFunctions.fCoverFillPath ||
466 NULL == fFunctions.fCoverStrokePath || 468 NULL == fFunctions.fCoverStrokePath ||
467 NULL == fFunctions.fCoverFillPathInstanced || 469 NULL == fFunctions.fCoverFillPathInstanced ||
468 NULL == fFunctions.fCoverStrokePathInstanced) { 470 NULL == fFunctions.fCoverStrokePathInstanced) {
469 RETURN_FALSE_INTERFACE 471 RETURN_FALSE_INTERFACE
470 } 472 }
471 // Currently ProgramPathFragmentInputGen is not used on 473 // Currently ProgramPathFragmentInputGen is not used on
472 // OpenGL, rather PathTexGen is. 474 // OpenGL, rather PathTexGen is.
473 if ((kGL_GrGLStandard == fStandard && NULL == fFunctions.fPathTexGen) || 475 if ((kGL_GrGLStandard == fStandard && NULL == fFunctions.fPathTexGen) ||
474 (kGLES_GrGLStandard == fStandard && NULL == fFunctions.fProgramPathF ragmentInputGen)) { 476 (kGLES_GrGLStandard == fStandard && NULL == fFunctions.fProgramPathF ragmentInputGen)) {
475 RETURN_FALSE_INTERFACE 477 RETURN_FALSE_INTERFACE
476 } 478 }
477 } 479 }
478 480
479 return true; 481 return true;
480 } 482 }
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