Index: src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp |
diff --git a/src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp b/src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp |
index 4c474b28dc3631bffba0b0282ca6674ce4d6a750..720dc6345d5014cf3da0a4c9d66bfd386fbd14d0 100644 |
--- a/src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp |
+++ b/src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp |
@@ -240,11 +240,11 @@ void GLEdge2PtConicalEffect::emitCode(GrGLProgramBuilder* builder, |
builder->getUniformVariable(fParamUni).appendArrayAccess(2, &p2); |
// We interpolate the linear component in coords[1]. |
- SkASSERT(coords[0].type() == coords[1].type()); |
+ SkASSERT(coords[0].getType() == coords[1].getType()); |
const char* coords2D; |
SkString bVar; |
GrGLFragmentShaderBuilder* fsBuilder = builder->getFragmentShaderBuilder(); |
- if (kVec3f_GrSLType == coords[0].type()) { |
+ if (kVec3f_GrSLType == coords[0].getType()) { |
fsBuilder->codeAppendf("\tvec3 interpolants = vec3(%s.xy / %s.z, %s.x / %s.z);\n", |
coords[0].c_str(), coords[0].c_str(), coords[1].c_str(), |
coords[1].c_str()); |