Index: src/pathops/SkOpAngle.h |
=================================================================== |
--- src/pathops/SkOpAngle.h (revision 9111) |
+++ src/pathops/SkOpAngle.h (working copy) |
@@ -13,6 +13,8 @@ |
#include "SkPathOpsCubic.h" |
#include "SkTDArray.h" |
+class SkOpSegment; |
+ |
// sorting angles |
// given angles of {dx dy ddx ddy dddx dddy} sort them |
class SkOpAngle { |
@@ -31,10 +33,7 @@ |
return fEnd; |
} |
- bool isHorizontal() const { |
- return dy() == 0 && fVerb == SkPath::kLine_Verb; |
- } |
- |
+ bool isHorizontal() const; |
bool lengthen(); |
bool reverseLengthen(); |
@@ -51,10 +50,6 @@ |
return SkSign32(fStart - fEnd); |
} |
- const SkTDArray<SkOpSpan>* spans() const { |
- return fSpans; |
- } |
- |
int start() const { |
return fStart; |
} |
@@ -64,26 +59,15 @@ |
} |
#if DEBUG_ANGLE |
- const SkPoint* pts() const { |
- return fPts; |
- } |
- |
- SkPath::Verb verb() const { |
- return fVerb; |
- } |
- |
void debugShow(const SkPoint& a) const { |
SkDebugf(" d=(%1.9g,%1.9g) side=%1.9g\n", dx(), dy(), fSide); |
} |
#endif |
private: |
- const SkPoint* fPts; |
SkDCubic fCurvePart; |
- SkPath::Verb fVerb; |
double fSide; |
SkLineParameters fTangent1; |
- const SkTDArray<SkOpSpan>* fSpans; |
const SkOpSegment* fSegment; |
int fStart; |
int fEnd; |