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

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

Issue 570733002: Add support for glMemoryGlyphIndexArrayNV (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix windows warning Created 6 years, 3 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/GrGLDefines.h ('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;
64 return newInterface; 65 return newInterface;
65 } 66 }
66 67
67 GrGLInterface::GrGLInterface() { 68 GrGLInterface::GrGLInterface() {
68 fStandard = kNone_GrGLStandard; 69 fStandard = kNone_GrGLStandard;
69 70
70 #if GR_GL_PER_GL_FUNC_CALLBACK 71 #if GR_GL_PER_GL_FUNC_CALLBACK
71 fCallback = GrGLDefaultInterfaceCallback; 72 fCallback = GrGLDefaultInterfaceCallback;
72 fCallbackData = 0; 73 fCallbackData = 0;
73 #endif 74 #endif
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 // Some methods only exist on desktop 479 // Some methods only exist on desktop
479 if (NULL == fFunctions.fPathTexGen) { 480 if (NULL == fFunctions.fPathTexGen) {
480 RETURN_FALSE_INTERFACE 481 RETURN_FALSE_INTERFACE
481 } 482 }
482 } else { 483 } else {
483 // All additions through v1.3 exist on GLES 484 // All additions through v1.3 exist on GLES
484 if (NULL == fFunctions.fStencilThenCoverFillPath || 485 if (NULL == fFunctions.fStencilThenCoverFillPath ||
485 NULL == fFunctions.fStencilThenCoverStrokePath || 486 NULL == fFunctions.fStencilThenCoverStrokePath ||
486 NULL == fFunctions.fStencilThenCoverFillPathInstanced || 487 NULL == fFunctions.fStencilThenCoverFillPathInstanced ||
487 NULL == fFunctions.fStencilThenCoverStrokePathInstanced || 488 NULL == fFunctions.fStencilThenCoverStrokePathInstanced ||
488 NULL == fFunctions.fProgramPathFragmentInputGen) { 489 NULL == fFunctions.fProgramPathFragmentInputGen ||
490 NULL == fFunctions.fPathMemoryGlyphIndexArray) {
489 RETURN_FALSE_INTERFACE 491 RETURN_FALSE_INTERFACE
490 } 492 }
491 } 493 }
492 } 494 }
493 495
494 return true; 496 return true;
495 } 497 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLDefines.h ('k') | src/gpu/gl/GrGLPathRendering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698