Fix vertex count estimate in GrTessellator.
authorsenorblanco <senorblanco@chromium.org>
Wed, 13 Jul 2016 17:40:42 +0000 (10:40 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 13 Jul 2016 17:40:43 +0000 (10:40 -0700)
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

src/gpu/GrTessellator.cpp

index fc09c0c..cefe4cd 100644 (file)
@@ -435,7 +435,6 @@ struct Poly {
                 m->fPrev = fTail;
                 fTail->fNext = m;
                 fTail = m;
-                fCount += 2;
             }
         }
         return poly;