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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/gl/GrGLPathRendering.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLPathRendering.cpp
diff --git a/src/gpu/gl/GrGLPathRendering.cpp b/src/gpu/gl/GrGLPathRendering.cpp
index f524ff2aca5fdbde49d1acd784c66004cffa5da4..81d47c4722591e96a5e9253785639c63a66761c5 100644
--- a/src/gpu/gl/GrGLPathRendering.cpp
+++ b/src/gpu/gl/GrGLPathRendering.cpp
@@ -49,13 +49,15 @@ GrGLPathRendering::GrGLPathRendering(GrGpuGL* gpu)
: fGpu(gpu) {
const GrGLInterface* glInterface = gpu->glInterface();
fCaps.stencilThenCoverSupport =
- glInterface->fFunctions.fStencilThenCoverFillPath &&
- glInterface->fFunctions.fStencilThenCoverStrokePath &&
- glInterface->fFunctions.fStencilThenCoverFillPathInstanced &&
- glInterface->fFunctions.fStencilThenCoverStrokePathInstanced;
+ NULL != glInterface->fFunctions.fStencilThenCoverFillPath &&
+ NULL != glInterface->fFunctions.fStencilThenCoverStrokePath &&
+ NULL != glInterface->fFunctions.fStencilThenCoverFillPathInstanced &&
+ NULL != glInterface->fFunctions.fStencilThenCoverStrokePathInstanced;
fCaps.fragmentInputGenSupport =
kGLES_GrGLStandard == glInterface->fStandard &&
- glInterface->fFunctions.fProgramPathFragmentInputGen;
+ NULL != glInterface->fFunctions.fProgramPathFragmentInputGen;
+ fCaps.glyphLoadingSupport =
+ NULL != glInterface->fFunctions.fPathMemoryGlyphIndexArray;
if (!fCaps.fragmentInputGenSupport) {
fHWPathTexGenSettings.reset(fGpu->glCaps().maxFixedFunctionTextureCoords());
« 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