aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar wangyix <wangyix@google.com>2015-08-21 06:56:49 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-21 06:56:49 -0700
commita71170cce8831b4d1e06bd673560f8b6fea9fbfe (patch)
tree92809ef6962d26b025dd4e043d8b9b4ad9742669 /src
parentc5d58f07aa6f4c47337d769e0e2e69c79669f91a (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/gpu/GrProcessor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/GrProcessor.cpp b/src/gpu/GrProcessor.cpp
index 6716ab1d12..db1e2d9f61 100644
--- a/src/gpu/GrProcessor.cpp
+++ b/src/gpu/GrProcessor.cpp
@@ -205,6 +205,10 @@ int GrFragmentProcessor::registerChildProcessor(const GrFragmentProcessor* child
this->setWillReadFragmentPosition();
}
+ if (child->usesLocalCoords()) {
+ fUsesLocalCoords = true;
+ }
+
return index;
}