Make SkSL CPP code gen copy explicit coord status for cloned FPs

Change-Id: I1479136de8fcab32e2be661fd5fae020b319aab8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/272458
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/src/gpu/gradients/generated/GrTiledGradientEffect.cpp b/src/gpu/gradients/generated/GrTiledGradientEffect.cpp
index c544160..f16a83c 100644
--- a/src/gpu/gradients/generated/GrTiledGradientEffect.cpp
+++ b/src/gpu/gradients/generated/GrTiledGradientEffect.cpp
@@ -77,8 +77,18 @@
         , mirror(src.mirror)
         , makePremul(src.makePremul)
         , colorsAreOpaque(src.colorsAreOpaque) {
-    this->registerChildProcessor(src.childProcessor(colorizer_index).clone());
-    this->registerChildProcessor(src.childProcessor(gradLayout_index).clone());
+    {
+        auto clone = src.childProcessor(colorizer_index).clone();
+        clone->setSampledWithExplicitCoords(
+                src.childProcessor(colorizer_index).isSampledWithExplicitCoords());
+        this->registerChildProcessor(std::move(clone));
+    }
+    {
+        auto clone = src.childProcessor(gradLayout_index).clone();
+        clone->setSampledWithExplicitCoords(
+                src.childProcessor(gradLayout_index).isSampledWithExplicitCoords());
+        this->registerChildProcessor(std::move(clone));
+    }
 }
 std::unique_ptr<GrFragmentProcessor> GrTiledGradientEffect::clone() const {
     return std::unique_ptr<GrFragmentProcessor>(new GrTiledGradientEffect(*this));