8e048c19870a898cecdde3b3c0d2d512e6f372c0 |
|
20-Nov-2009 |
Mike Reed <reed@google.com> |
new edgelist builder that chops segments into clip-sized coordinates, to avoid overflows The change is conditional at the moment inside SkScan_Path.cpp, USE_NEW_BUILDER. This chopping is meant to only pass in reasonable floats to the edgelist, so that we never overflow when converting to fixed-point. It also has the side-effect of speeding up edges to the left/right of the clip, since those become vertical lines, which are faster to walk over than the original curve segment. Future optimizations: throw away segments to the right of the clip, and tweak the edgelist walker to not require an explicit matching right-edge for the current run.
/external/skia/src/core/SkEdgeBuilder.h
|