aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrAAConvexTessellator.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-09-03 12:58:48 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-03 12:58:49 -0700
commit44c3128bd892d32f797810d93ef1ed392e0b902d (patch)
tree7262f7a19dda9f3e51910283720a533f4d1aa6a5 /src/gpu/batches/GrAAConvexTessellator.cpp
parentd34d94766d54e3a0f2864d285f6262ef66cd9028 (diff)
Clean up some lint complaints
Diffstat (limited to 'src/gpu/batches/GrAAConvexTessellator.cpp')
-rw-r--r--src/gpu/batches/GrAAConvexTessellator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/batches/GrAAConvexTessellator.cpp b/src/gpu/batches/GrAAConvexTessellator.cpp
index c111b8b562..5ef9aefddd 100644
--- a/src/gpu/batches/GrAAConvexTessellator.cpp
+++ b/src/gpu/batches/GrAAConvexTessellator.cpp
@@ -721,11 +721,11 @@ bool GrAAConvexTessellator::createInsetRing(const Ring& lastRing, Ring* nextRing
dst[i] = nextRing->index(dst[i]);
}
- for (int cur = 0; cur < lastRing.numPts(); ++cur) {
- int next = (cur + 1) % lastRing.numPts();
+ for (int i = 0; i < lastRing.numPts(); ++i) {
+ int next = (i + 1) % lastRing.numPts();
- this->addTri(lastRing.index(cur), lastRing.index(next), dst[next]);
- this->addTri(lastRing.index(cur), dst[next], dst[cur]);
+ this->addTri(lastRing.index(i), lastRing.index(next), dst[next]);
+ this->addTri(lastRing.index(i), dst[next], dst[i]);
}
if (done && fStrokeWidth < 0.0f) {