convert pathops to use SkSTArray where possible.
authorcaryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 17 Jun 2013 14:10:36 +0000 (14:10 +0000)
committercaryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 17 Jun 2013 14:10:36 +0000 (14:10 +0000)
commitd892bd8ba676d34d4ce4a73ac7aad88e102fad70
treef8b35e6d7582800ef622fc796ef4077163763a05
parentacb3d88cf84adf367c173a7a33cd3b0c379291dc
convert pathops to use SkSTArray where possible.

Replace SkTDArray with SkTArray and use SkSTArray when
the probable array size is known.

In a couple of places (spans, chases) the arrays are
constructed using insert() so SkTArrays can't be used for
now.

Also, add an optimization to cubic subdivide if either end
is zero or one.

BUG=

Review URL: https://codereview.chromium.org/16951017

git-svn-id: http://skia.googlecode.com/svn/trunk@9635 2bbb7eff-a529-9590-31e7-b0007b416f81
24 files changed:
src/pathops/SkAddIntersections.cpp
src/pathops/SkAddIntersections.h
src/pathops/SkDCubicIntersection.cpp
src/pathops/SkDCubicToQuads.cpp
src/pathops/SkDQuadIntersection.cpp
src/pathops/SkOpAngle.h
src/pathops/SkOpContour.cpp
src/pathops/SkOpContour.h
src/pathops/SkOpEdgeBuilder.cpp
src/pathops/SkOpEdgeBuilder.h
src/pathops/SkOpSegment.cpp
src/pathops/SkOpSegment.h
src/pathops/SkPathOpsCommon.cpp
src/pathops/SkPathOpsCommon.h
src/pathops/SkPathOpsCubic.cpp
src/pathops/SkPathOpsCubic.h
src/pathops/SkPathOpsOp.cpp
src/pathops/SkPathOpsSimplify.cpp
src/pathops/SkReduceOrder.cpp
src/pathops/SkReduceOrder.h
tests/PathOpsCubicIntersectionTest.cpp
tests/PathOpsCubicToQuadsTest.cpp
tests/PathOpsTestCommon.cpp
tests/PathOpsTestCommon.h