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

Side by Side Diff: src/gpu/gl/GrGLPathRendering.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/GrGLPathRendering.h ('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 2014 Google Inc. 2 * Copyright 2014 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 #include "gl/GrGLPathRendering.h" 8 #include "gl/GrGLPathRendering.h"
9 #include "gl/GrGLNameAllocator.h" 9 #include "gl/GrGLNameAllocator.h"
10 #include "gl/GrGLUtil.h" 10 #include "gl/GrGLUtil.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 return GR_GL_COUNT_UP; 42 return GR_GL_COUNT_UP;
43 case kInvert_StencilOp: 43 case kInvert_StencilOp:
44 return GR_GL_INVERT; 44 return GR_GL_INVERT;
45 } 45 }
46 } 46 }
47 47
48 GrGLPathRendering::GrGLPathRendering(GrGpuGL* gpu) 48 GrGLPathRendering::GrGLPathRendering(GrGpuGL* gpu)
49 : fGpu(gpu) { 49 : fGpu(gpu) {
50 const GrGLInterface* glInterface = gpu->glInterface(); 50 const GrGLInterface* glInterface = gpu->glInterface();
51 fCaps.stencilThenCoverSupport = 51 fCaps.stencilThenCoverSupport =
52 glInterface->fFunctions.fStencilThenCoverFillPath && 52 NULL != glInterface->fFunctions.fStencilThenCoverFillPath &&
53 glInterface->fFunctions.fStencilThenCoverStrokePath && 53 NULL != glInterface->fFunctions.fStencilThenCoverStrokePath &&
54 glInterface->fFunctions.fStencilThenCoverFillPathInstanced && 54 NULL != glInterface->fFunctions.fStencilThenCoverFillPathInstanced &&
55 glInterface->fFunctions.fStencilThenCoverStrokePathInstanced; 55 NULL != glInterface->fFunctions.fStencilThenCoverStrokePathInstanced;
56 fCaps.fragmentInputGenSupport = 56 fCaps.fragmentInputGenSupport =
57 kGLES_GrGLStandard == glInterface->fStandard && 57 kGLES_GrGLStandard == glInterface->fStandard &&
58 glInterface->fFunctions.fProgramPathFragmentInputGen; 58 NULL != glInterface->fFunctions.fProgramPathFragmentInputGen;
59 fCaps.glyphLoadingSupport =
60 NULL != glInterface->fFunctions.fPathMemoryGlyphIndexArray;
59 61
60 if (!fCaps.fragmentInputGenSupport) { 62 if (!fCaps.fragmentInputGenSupport) {
61 fHWPathTexGenSettings.reset(fGpu->glCaps().maxFixedFunctionTextureCoords ()); 63 fHWPathTexGenSettings.reset(fGpu->glCaps().maxFixedFunctionTextureCoords ());
62 } 64 }
63 } 65 }
64 66
65 GrGLPathRendering::~GrGLPathRendering() { 67 GrGLPathRendering::~GrGLPathRendering() {
66 } 68 }
67 69
68 void GrGLPathRendering::abandonGpuResources() { 70 void GrGLPathRendering::abandonGpuResources() {
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 reference, mask, coverMode, transformType, 470 reference, mask, coverMode, transformType,
469 transformValues)); 471 transformValues));
470 return; 472 return;
471 } 473 }
472 474
473 GL_CALL(StencilStrokePathInstanced(numPaths, pathNameType, paths, pathBase, 475 GL_CALL(StencilStrokePathInstanced(numPaths, pathNameType, paths, pathBase,
474 reference, mask, transformType, transform Values)); 476 reference, mask, transformType, transform Values));
475 GL_CALL(CoverStrokePathInstanced(numPaths, pathNameType, paths, pathBase, 477 GL_CALL(CoverStrokePathInstanced(numPaths, pathNameType, paths, pathBase,
476 coverMode, transformType, transformValues)) ; 478 coverMode, transformType, transformValues)) ;
477 } 479 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLPathRendering.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698