GrFP::coordTransformsApplyToLocalCoords() -> GrFP::isSampledWithExplicitCoords()
Also rename and flip meaning of the internal flag.
Change-Id: Icf3437fa271da26037690c9a5083adb862a69233
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/272379
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrPrimitiveProcessor.cpp b/src/gpu/GrPrimitiveProcessor.cpp
index e5f01be..9378c41 100644
--- a/src/gpu/GrPrimitiveProcessor.cpp
+++ b/src/gpu/GrPrimitiveProcessor.cpp
@@ -33,7 +33,7 @@
for (int t = 0; t < fp.numCoordTransforms(); ++t) {
uint32_t key = 0;
const GrCoordTransform& coordTransform = fp.coordTransform(t);
- if (!fp.coordTransformsApplyToLocalCoords() && coordTransform.isNoOp()) {
+ if (fp.isSampledWithExplicitCoords() && coordTransform.isNoOp()) {
key = kNone_MatrixType;
} else if (coordTransform.matrix().hasPerspective()) {
// Note that we can also have homogeneous varyings as a result of a GP local matrix or