This code should've been part of the CL that added registerChildProcessor(); without updating fUsesLocalCoords in the parent when a child proc is registered, batching will not work properly.
BUG=skia:4182
Review URL: https://codereview.chromium.org/1308513004
diff --git a/src/gpu/GrProcessor.cpp b/src/gpu/GrProcessor.cpp
index 6716ab1..db1e2d9 100644
--- a/src/gpu/GrProcessor.cpp
+++ b/src/gpu/GrProcessor.cpp
@@ -205,6 +205,10 @@
this->setWillReadFragmentPosition();
}
+ if (child->usesLocalCoords()) {
+ fUsesLocalCoords = true;
+ }
+
return index;
}