Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Unified Diff: src/pathops/SkOpAngle.h

Issue 14865019: path ops work in progress (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/pathops/SkOpAngle.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | src/pathops/SkOpAngle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698