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

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

Issue 443133003: Revert of Wrap NV_path_rendering API with GrGLPathRendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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') | src/gpu/gl/GrGLPath.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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 newInterface->fFunctions.fPathStencilFunc = NULL; 49 newInterface->fFunctions.fPathStencilFunc = NULL;
50 newInterface->fFunctions.fStencilFillPath = NULL; 50 newInterface->fFunctions.fStencilFillPath = NULL;
51 newInterface->fFunctions.fStencilStrokePath = NULL; 51 newInterface->fFunctions.fStencilStrokePath = NULL;
52 newInterface->fFunctions.fStencilFillPathInstanced = NULL; 52 newInterface->fFunctions.fStencilFillPathInstanced = NULL;
53 newInterface->fFunctions.fStencilStrokePathInstanced = NULL; 53 newInterface->fFunctions.fStencilStrokePathInstanced = NULL;
54 newInterface->fFunctions.fPathTexGen = NULL; 54 newInterface->fFunctions.fPathTexGen = NULL;
55 newInterface->fFunctions.fCoverFillPath = NULL; 55 newInterface->fFunctions.fCoverFillPath = NULL;
56 newInterface->fFunctions.fCoverStrokePath = NULL; 56 newInterface->fFunctions.fCoverStrokePath = NULL;
57 newInterface->fFunctions.fCoverFillPathInstanced = NULL; 57 newInterface->fFunctions.fCoverFillPathInstanced = NULL;
58 newInterface->fFunctions.fCoverStrokePathInstanced = NULL; 58 newInterface->fFunctions.fCoverStrokePathInstanced = NULL;
59 newInterface->fFunctions.fStencilThenCoverFillPath = NULL;
60 newInterface->fFunctions.fStencilThenCoverStrokePath = NULL;
61 newInterface->fFunctions.fStencilThenCoverFillPathInstanced = NULL;
62 newInterface->fFunctions.fStencilThenCoverStrokePathInstanced = NULL;
63 newInterface->fFunctions.fProgramPathFragmentInputGen = NULL; 59 newInterface->fFunctions.fProgramPathFragmentInputGen = NULL;
64 return newInterface; 60 return newInterface;
65 } 61 }
66 62
67 GrGLInterface::GrGLInterface() { 63 GrGLInterface::GrGLInterface() {
68 fStandard = kNone_GrGLStandard; 64 fStandard = kNone_GrGLStandard;
69 65
70 #if GR_GL_PER_GL_FUNC_CALLBACK 66 #if GR_GL_PER_GL_FUNC_CALLBACK
71 fCallback = GrGLDefaultInterfaceCallback; 67 fCallback = GrGLDefaultInterfaceCallback;
72 fCallbackData = 0; 68 fCallbackData = 0;
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 NULL == fFunctions.fDeletePaths || 460 NULL == fFunctions.fDeletePaths ||
465 NULL == fFunctions.fIsPath || 461 NULL == fFunctions.fIsPath ||
466 NULL == fFunctions.fPathStencilFunc || 462 NULL == fFunctions.fPathStencilFunc ||
467 NULL == fFunctions.fStencilFillPath || 463 NULL == fFunctions.fStencilFillPath ||
468 NULL == fFunctions.fStencilStrokePath || 464 NULL == fFunctions.fStencilStrokePath ||
469 NULL == fFunctions.fStencilFillPathInstanced || 465 NULL == fFunctions.fStencilFillPathInstanced ||
470 NULL == fFunctions.fStencilStrokePathInstanced || 466 NULL == fFunctions.fStencilStrokePathInstanced ||
471 NULL == fFunctions.fCoverFillPath || 467 NULL == fFunctions.fCoverFillPath ||
472 NULL == fFunctions.fCoverStrokePath || 468 NULL == fFunctions.fCoverStrokePath ||
473 NULL == fFunctions.fCoverFillPathInstanced || 469 NULL == fFunctions.fCoverFillPathInstanced ||
474 NULL == fFunctions.fCoverStrokePathInstanced) { 470 NULL == fFunctions.fCoverStrokePathInstanced ||
471 NULL == fFunctions.fStencilThenCoverFillPath ||
472 NULL == fFunctions.fStencilThenCoverStrokePath ||
473 NULL == fFunctions.fStencilThenCoverFillPathInstanced ||
474 NULL == fFunctions.fStencilThenCoverStrokePathInstanced) {
475 RETURN_FALSE_INTERFACE 475 RETURN_FALSE_INTERFACE
476 } 476 }
477 if (kGL_GrGLStandard == fStandard) { 477 // Currently ProgramPathFragmentInputGen is not used on
478 // Some methods only exist on desktop 478 // OpenGL, rather PathTexGen is.
479 if (NULL == fFunctions.fPathTexGen) { 479 if ((kGL_GrGLStandard == fStandard && NULL == fFunctions.fPathTexGen) ||
480 RETURN_FALSE_INTERFACE 480 (kGLES_GrGLStandard == fStandard && NULL == fFunctions.fProgramPathF ragmentInputGen)) {
481 } 481 RETURN_FALSE_INTERFACE
482 } else {
483 // All additions through v1.3 exist on GLES
484 if (NULL == fFunctions.fStencilThenCoverFillPath ||
485 NULL == fFunctions.fStencilThenCoverStrokePath ||
486 NULL == fFunctions.fStencilThenCoverFillPathInstanced ||
487 NULL == fFunctions.fStencilThenCoverStrokePathInstanced ||
488 NULL == fFunctions.fProgramPathFragmentInputGen) {
489 RETURN_FALSE_INTERFACE
490 }
491 } 482 }
492 } 483 }
493 484
494 return true; 485 return true;
495 } 486 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLAssembleInterface.cpp ('k') | src/gpu/gl/GrGLPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698