diff options
author | 2015-08-21 06:56:49 -0700 | |
---|---|---|
committer | 2015-08-21 06:56:49 -0700 | |
commit | a71170cce8831b4d1e06bd673560f8b6fea9fbfe (patch) | |
tree | 92809ef6962d26b025dd4e043d8b9b4ad9742669 /src | |
parent | c5d58f07aa6f4c47337d769e0e2e69c79669f91a (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.
BUG=skia:4182
Review URL: https://codereview.chromium.org/1308513004
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/GrProcessor.cpp | 4 |
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; } |