Update comment explaining ignoreable subset rects
Change-Id: I1f3e5e0bdc216910be6b522f460b2c277134635c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/447190
Auto-Submit: Brian Osman <brianosman@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
diff --git a/src/gpu/ops/TextureOp.cpp b/src/gpu/ops/TextureOp.cpp
index f33075e..fbf6bf1 100644
--- a/src/gpu/ops/TextureOp.cpp
+++ b/src/gpu/ops/TextureOp.cpp
@@ -208,7 +208,7 @@
return true;
}
- // If the subset rect is inset by at least 0.5 pixels into the local quad's bounds, the
+ // If the local quad is inset by at least 0.5 pixels into the subset rect's bounds, the
// sampler shouldn't overshoot, even when antialiasing and filtering is taken into account.
if (subsetRect.makeInset(0.5f, 0.5f).contains(localBounds)) {
return true;