aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar senorblanco <senorblanco@chromium.org>2016-07-13 10:40:42 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-13 10:40:43 -0700
commit99f942e5505a663b0d355ad187484f15e3a9a83a (patch)
treed80943a502fa24a574f3f1edfc6c5e57a7aa10c5
parent485a12003ab48b54965d6f7172f3183358919d8e (diff)
Fix vertex count estimate in GrTessellator.
When we start a new MonotonePoly due to a handedness change, we don't need to increase the vertex count, since that edge (and vertex) has already been accounted for in the previous MonotonePoly. This was not a correctness issue, but was causing us to allocate extra vertices which would go unused. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2146063002 Review-Url: https://codereview.chromium.org/2146063002
-rw-r--r--src/gpu/GrTessellator.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gpu/GrTessellator.cpp b/src/gpu/GrTessellator.cpp
index fc09c0c649..cefe4cd65b 100644
--- a/src/gpu/GrTessellator.cpp
+++ b/src/gpu/GrTessellator.cpp
@@ -435,7 +435,6 @@ struct Poly {
m->fPrev = fTail;
fTail->fNext = m;
fTail = m;
- fCount += 2;
}
}
return poly;