diff options
author | 2016-11-29 13:43:46 -0500 | |
---|---|---|
committer | 2016-11-29 20:17:48 +0000 | |
commit | 1edc5b92fecefb79f01cf0e302646eacf32b06c7 (patch) | |
tree | aaffe2729d3801c4dfd4ecb64f9ac4c4f78d4ad9 /src/gpu/effects | |
parent | a0c4c3407d57296eb914cd1c6e0f588f86fe8404 (diff) |
Rename vars and functions from 'glslcaps'->'shadercaps'
Change-Id: I34d226d866dd4ba8e5f33f95cb8cbf01292f9314
Reviewed-on: https://skia-review.googlesource.com/5312
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/effects')
-rw-r--r-- | src/gpu/effects/GrBezierEffect.cpp | 2 | ||||
-rw-r--r-- | src/gpu/effects/GrBicubicEffect.cpp | 2 | ||||
-rw-r--r-- | src/gpu/effects/GrConfigConversionEffect.cpp | 2 | ||||
-rw-r--r-- | src/gpu/effects/GrMatrixConvolutionEffect.cpp | 4 | ||||
-rw-r--r-- | src/gpu/effects/GrOvalEffect.cpp | 2 | ||||
-rw-r--r-- | src/gpu/effects/GrRRectEffect.cpp | 4 | ||||
-rw-r--r-- | src/gpu/effects/GrTextureDomain.cpp | 8 | ||||
-rw-r--r-- | src/gpu/effects/GrTextureDomain.h | 2 |
8 files changed, 13 insertions, 13 deletions
diff --git a/src/gpu/effects/GrBezierEffect.cpp b/src/gpu/effects/GrBezierEffect.cpp index 1465fbb54e..8db60acec8 100644 --- a/src/gpu/effects/GrBezierEffect.cpp +++ b/src/gpu/effects/GrBezierEffect.cpp @@ -110,7 +110,7 @@ void GrGLConicEffect::onEmitCode(EmitArgs& args, GrGPArgs* gpArgs) { // Additionally we should assert that the upstream code only lets us get here if // either high or medium provides the required number of bits. GrSLPrecision precision = kHigh_GrSLPrecision; - const GrShaderCaps::PrecisionInfo& highP = args.fGLSLCaps->getFloatShaderPrecisionInfo( + const GrShaderCaps::PrecisionInfo& highP = args.fShaderCaps->getFloatShaderPrecisionInfo( kFragment_GrShaderType, kHigh_GrSLPrecision); if (!highP.supported()) { diff --git a/src/gpu/effects/GrBicubicEffect.cpp b/src/gpu/effects/GrBicubicEffect.cpp index d109ef14a9..8d16f1dd54 100644 --- a/src/gpu/effects/GrBicubicEffect.cpp +++ b/src/gpu/effects/GrBicubicEffect.cpp @@ -102,7 +102,7 @@ void GrGLBicubicEffect::emitCode(EmitArgs& args) { sampleVar.printf("rowColors[%d]", x); fDomain.sampleTexture(fragBuilder, args.fUniformHandler, - args.fGLSLCaps, + args.fShaderCaps, bicubicEffect.domain(), sampleVar.c_str(), coord, diff --git a/src/gpu/effects/GrConfigConversionEffect.cpp b/src/gpu/effects/GrConfigConversionEffect.cpp index becd84aea1..f7003121d7 100644 --- a/src/gpu/effects/GrConfigConversionEffect.cpp +++ b/src/gpu/effects/GrConfigConversionEffect.cpp @@ -25,7 +25,7 @@ public: // Using highp for GLES here in order to avoid some precision issues on specific GPUs. GrShaderVar tmpVar("tmpColor", kVec4f_GrSLType, 0, kHigh_GrSLPrecision); SkString tmpDecl; - tmpVar.appendDecl(args.fGLSLCaps, &tmpDecl); + tmpVar.appendDecl(args.fShaderCaps, &tmpDecl); GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; diff --git a/src/gpu/effects/GrMatrixConvolutionEffect.cpp b/src/gpu/effects/GrMatrixConvolutionEffect.cpp index 5e4dc26c97..96f7014284 100644 --- a/src/gpu/effects/GrMatrixConvolutionEffect.cpp +++ b/src/gpu/effects/GrMatrixConvolutionEffect.cpp @@ -83,7 +83,7 @@ void GrGLMatrixConvolutionEffect::emitCode(EmitArgs& args) { coord.printf("coord + vec2(%d, %d) * %s", x, y, imgInc); fDomain.sampleTexture(fragBuilder, uniformHandler, - args.fGLSLCaps, + args.fShaderCaps, domain, "c", coord, @@ -102,7 +102,7 @@ void GrGLMatrixConvolutionEffect::emitCode(EmitArgs& args) { } else { fDomain.sampleTexture(fragBuilder, uniformHandler, - args.fGLSLCaps, + args.fShaderCaps, domain, "c", coords2D, diff --git a/src/gpu/effects/GrOvalEffect.cpp b/src/gpu/effects/GrOvalEffect.cpp index 993f269bf9..13cbd25592 100644 --- a/src/gpu/effects/GrOvalEffect.cpp +++ b/src/gpu/effects/GrOvalEffect.cpp @@ -298,7 +298,7 @@ void GLEllipseEffect::emitCode(EmitArgs& args) { // inverse squared radii uniform values are already in this normalized space. The center is // not. const char* scaleName = nullptr; - if (args.fGLSLCaps->floatPrecisionVaries()) { + if (args.fShaderCaps->floatPrecisionVaries()) { fScaleUniform = args.fUniformHandler->addUniform( kFragment_GrShaderFlag, kVec2f_GrSLType, kDefault_GrSLPrecision, "scale", &scaleName); diff --git a/src/gpu/effects/GrRRectEffect.cpp b/src/gpu/effects/GrRRectEffect.cpp index adf7bfd7ae..4db3957de8 100644 --- a/src/gpu/effects/GrRRectEffect.cpp +++ b/src/gpu/effects/GrRRectEffect.cpp @@ -170,7 +170,7 @@ void GLCircularRRectEffect::emitCode(EmitArgs& args) { // If we're on a device with a "real" mediump then the length calculation could overflow. SkString clampedCircleDistance; - if (args.fGLSLCaps->floatPrecisionVaries()) { + if (args.fShaderCaps->floatPrecisionVaries()) { clampedCircleDistance.printf("clamp(%s.x * (1.0 - length(dxy * %s.y)), 0.0, 1.0);", radiusPlusHalfName, radiusPlusHalfName); } else { @@ -536,7 +536,7 @@ void GLEllipticalRRectEffect::emitCode(EmitArgs& args) { // that is normalized by the largest radius. The scale uniform will be scale, 1/scale. The // radii uniform values are already in this normalized space. const char* scaleName = nullptr; - if (args.fGLSLCaps->floatPrecisionVaries()) { + if (args.fShaderCaps->floatPrecisionVaries()) { fScaleUniform = uniformHandler->addUniform(kFragment_GrShaderFlag, kVec2f_GrSLType, kDefault_GrSLPrecision, "scale", &scaleName); diff --git a/src/gpu/effects/GrTextureDomain.cpp b/src/gpu/effects/GrTextureDomain.cpp index 78be8fe59c..dd43b15c02 100644 --- a/src/gpu/effects/GrTextureDomain.cpp +++ b/src/gpu/effects/GrTextureDomain.cpp @@ -45,7 +45,7 @@ GrTextureDomain::GrTextureDomain(const SkRect& domain, Mode mode, int index) void GrTextureDomain::GLDomain::sampleTexture(GrGLSLShaderBuilder* builder, GrGLSLUniformHandler* uniformHandler, - const GrShaderCaps* glslCaps, + const GrShaderCaps* shaderCaps, const GrTextureDomain& textureDomain, const char* outColor, const SkString& inCoords, @@ -90,7 +90,7 @@ void GrTextureDomain::GLDomain::sampleTexture(GrGLSLShaderBuilder* builder, GrGLSLShaderBuilder::ShaderBlock block(builder); const char* domain = fDomainName.c_str(); - if (!glslCaps->canUseAnyFunctionInShader()) { + if (!shaderCaps->canUseAnyFunctionInShader()) { // On the NexusS and GalaxyNexus, the other path (with the 'any' // call) causes the compilation error "Calls to any function that // may require a gradient calculation inside a conditional block @@ -215,7 +215,7 @@ GrGLSLFragmentProcessor* GrTextureDomainEffect::onCreateGLSLInstance() const { SkString coords2D = fragBuilder->ensureCoords2D(args.fTransformedCoords[0]); fGLDomain.sampleTexture(fragBuilder, args.fUniformHandler, - args.fGLSLCaps, + args.fShaderCaps, domain, args.fOutputColor, coords2D, @@ -318,7 +318,7 @@ GrGLSLFragmentProcessor* GrDeviceSpaceTextureDecalFragmentProcessor::onCreateGLS scaleAndTranslateName, scaleAndTranslateName); fGLDomain.sampleTexture(args.fFragBuilder, args.fUniformHandler, - args.fGLSLCaps, + args.fShaderCaps, dstdfp.fTextureDomain, args.fOutputColor, SkString("coords"), diff --git a/src/gpu/effects/GrTextureDomain.h b/src/gpu/effects/GrTextureDomain.h index 7e7ec74912..644d14c7dd 100644 --- a/src/gpu/effects/GrTextureDomain.h +++ b/src/gpu/effects/GrTextureDomain.h @@ -115,7 +115,7 @@ public: */ void sampleTexture(GrGLSLShaderBuilder* builder, GrGLSLUniformHandler* uniformHandler, - const GrShaderCaps* glslCaps, + const GrShaderCaps* shaderCaps, const GrTextureDomain& textureDomain, const char* outColor, const SkString& inCoords, |