Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Unified Diff: src/gpu/GrProcessor.cpp

Issue 1308513004: fUsesLocalCoords is updated in the parent when a child proc is registered. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrProcessor.cpp
diff --git a/src/gpu/GrProcessor.cpp b/src/gpu/GrProcessor.cpp
index 6716ab1d12d6b2030f21fed850c34d83c6a0c0e0..db1e2d9f6198a0103c08728a8326b6dbf9ef5df3 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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698