diff options
author | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-06-17 14:10:36 +0000 |
---|---|---|
committer | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-06-17 14:10:36 +0000 |
commit | d892bd8ba676d34d4ce4a73ac7aad88e102fad70 (patch) | |
tree | f8b35e6d7582800ef622fc796ef4077163763a05 /src/pathops/SkOpAngle.h | |
parent | acb3d88cf84adf367c173a7a33cd3b0c379291dc (diff) |
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
Diffstat (limited to 'src/pathops/SkOpAngle.h')
-rw-r--r-- | src/pathops/SkOpAngle.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pathops/SkOpAngle.h b/src/pathops/SkOpAngle.h index 2800ff0568..e7e5e1f597 100644 --- a/src/pathops/SkOpAngle.h +++ b/src/pathops/SkOpAngle.h @@ -17,6 +17,8 @@ class SkOpSegment; // given angles of {dx dy ddx ddy dddx dddy} sort them class SkOpAngle { public: + enum { kStackBasedCount = 8 }; // FIXME: determine what this should be + bool operator<(const SkOpAngle& rh) const; bool calcSlop(double x, double y, double rx, double ry, bool* result) const; |