Index: src/gpu/glsl/GrGLSLPrimitiveProcessor.cpp |
diff --git a/src/gpu/glsl/GrGLSLPrimitiveProcessor.cpp b/src/gpu/glsl/GrGLSLPrimitiveProcessor.cpp |
index c19239a5d54c3a3904e8026dc9dcdabd14a42379..5ae28a0bbc50012f6727a74471f0c30f71e237b3 100644 |
--- a/src/gpu/glsl/GrGLSLPrimitiveProcessor.cpp |
+++ b/src/gpu/glsl/GrGLSLPrimitiveProcessor.cpp |
@@ -47,3 +47,16 @@ void GrGLSLPrimitiveProcessor::setupUniformColor(GrGLSLPPFragmentBuilder* fragBu |
&stagedLocalVarName); |
fragBuilder->codeAppendf("%s = %s;", outputName, stagedLocalVarName); |
} |
+ |
+////////////////////////////////////////////////////////////////////////////// |
+ |
+const GrCoordTransform* GrGLSLPrimitiveProcessor::FPCoordTransformHandler::nextCoordTransform() { |
+#ifdef SK_DEBUG |
+ SkASSERT(nullptr == fCurr || fAddedCoord); |
+ fAddedCoord = false; |
+ fCurr = fIter.next(); |
+ return fCurr; |
+#else |
+ return fIter.next(); |
+#endif |
+} |