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

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

Issue 1176113008: Stop using the NVPR glyph loading functionality (Closed) Base URL: https://skia.googlesource.com/skia.git@chromium-pathrendering-prepare-01-for-fragment-bind
Patch Set: Created 5 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 | « src/gpu/gl/GrGLAssembleInterface.cpp ('k') | src/gpu/gl/GrGLPathRendering.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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 59 newInterface->fFunctions.fStencilThenCoverFillPath = NULL;
60 newInterface->fFunctions.fStencilThenCoverStrokePath = NULL; 60 newInterface->fFunctions.fStencilThenCoverStrokePath = NULL;
61 newInterface->fFunctions.fStencilThenCoverFillPathInstanced = NULL; 61 newInterface->fFunctions.fStencilThenCoverFillPathInstanced = NULL;
62 newInterface->fFunctions.fStencilThenCoverStrokePathInstanced = NULL; 62 newInterface->fFunctions.fStencilThenCoverStrokePathInstanced = NULL;
63 newInterface->fFunctions.fProgramPathFragmentInputGen = NULL; 63 newInterface->fFunctions.fProgramPathFragmentInputGen = NULL;
64 newInterface->fFunctions.fPathMemoryGlyphIndexArray = NULL;
65 return newInterface; 64 return newInterface;
66 } 65 }
67 66
68 GrGLInterface::GrGLInterface() { 67 GrGLInterface::GrGLInterface() {
69 fStandard = kNone_GrGLStandard; 68 fStandard = kNone_GrGLStandard;
70 69
71 #if GR_GL_PER_GL_FUNC_CALLBACK 70 #if GR_GL_PER_GL_FUNC_CALLBACK
72 fCallback = GrGLDefaultInterfaceCallback; 71 fCallback = GrGLDefaultInterfaceCallback;
73 fCallbackData = 0; 72 fCallbackData = 0;
74 #endif 73 #endif
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 // Some methods only exist on desktop 507 // Some methods only exist on desktop
509 if (NULL == fFunctions.fPathTexGen) { 508 if (NULL == fFunctions.fPathTexGen) {
510 RETURN_FALSE_INTERFACE 509 RETURN_FALSE_INTERFACE
511 } 510 }
512 } else { 511 } else {
513 // All additions through v1.3 exist on GLES 512 // All additions through v1.3 exist on GLES
514 if (NULL == fFunctions.fStencilThenCoverFillPath || 513 if (NULL == fFunctions.fStencilThenCoverFillPath ||
515 NULL == fFunctions.fStencilThenCoverStrokePath || 514 NULL == fFunctions.fStencilThenCoverStrokePath ||
516 NULL == fFunctions.fStencilThenCoverFillPathInstanced || 515 NULL == fFunctions.fStencilThenCoverFillPathInstanced ||
517 NULL == fFunctions.fStencilThenCoverStrokePathInstanced || 516 NULL == fFunctions.fStencilThenCoverStrokePathInstanced ||
518 NULL == fFunctions.fProgramPathFragmentInputGen || 517 NULL == fFunctions.fProgramPathFragmentInputGen) {
519 NULL == fFunctions.fPathMemoryGlyphIndexArray) {
520 RETURN_FALSE_INTERFACE 518 RETURN_FALSE_INTERFACE
521 } 519 }
522 } 520 }
523 } 521 }
524 522
525 if (fExtensions.has("GL_EXT_raster_multisample")) { 523 if (fExtensions.has("GL_EXT_raster_multisample")) {
526 if (NULL == fFunctions.fRasterSamples) { 524 if (NULL == fFunctions.fRasterSamples) {
527 RETURN_FALSE_INTERFACE 525 RETURN_FALSE_INTERFACE
528 } 526 }
529 } 527 }
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 NULL == fFunctions.fGetDebugMessageLog || 697 NULL == fFunctions.fGetDebugMessageLog ||
700 NULL == fFunctions.fPushDebugGroup || 698 NULL == fFunctions.fPushDebugGroup ||
701 NULL == fFunctions.fPopDebugGroup || 699 NULL == fFunctions.fPopDebugGroup ||
702 NULL == fFunctions.fObjectLabel) { 700 NULL == fFunctions.fObjectLabel) {
703 RETURN_FALSE_INTERFACE 701 RETURN_FALSE_INTERFACE
704 } 702 }
705 } 703 }
706 704
707 return true; 705 return true;
708 } 706 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLAssembleInterface.cpp ('k') | src/gpu/gl/GrGLPathRendering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698