|
Rewriting path writer
The path writer takes constructs the output path out of
curves that satisfy the pathop operation.
Curves contain lists of t/point pairs that may not be
comparable to each other. To match up curve ends in the
output path, look for adjacent curves to have a shared
membership rather than comparing point values.
Use path utilities to connect partial curve lists into
closed contours.
Share the angle code that determines if a curve has become
a degenerate line with the path writer.
Clean up some code on the way, and delete some unused
functions.
TBR=reed@google.com
BUG= 5188
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2321973005
Committed: https://skia.googlesource.com/skia/+/eed356d281adbf93ecbd89cb23913a7861cd8578
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+535 lines, -587 lines) |
Patch |
|
M |
src/pathops/SkOpAngle.h
|
View
|
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
|
M |
src/pathops/SkOpAngle.cpp
|
View
|
|
18 chunks |
+51 lines, -106 lines |
0 comments
|
Download
|
|
M |
src/pathops/SkOpBuilder.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/pathops/SkOpContour.h
|
View
|
1
2
3
4
5
|
4 chunks |
+45 lines, -28 lines |
0 comments
|
Download
|
|
M |
src/pathops/SkOpContour.cpp
|
View
|
1
2
3
|
1 chunk |
+4 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/pathops/SkOpEdgeBuilder.h
|
View
|
1
2
3
4
5
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/pathops/SkOpEdgeBuilder.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/pathops/SkOpSegment.h
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/pathops/SkOpSegment.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+22 lines, -49 lines |
0 comments
|
Download
|
|
M |
src/pathops/SkPathOpsCommon.h
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
src/pathops/SkPathOpsCommon.cpp
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -209 lines |
0 comments
|
Download
|
|
M |
src/pathops/SkPathOpsCurve.h
|
View
|
1
2
3
4
5
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/pathops/SkPathOpsCurve.cpp
|
View
|
1
2
|
1 chunk |
+55 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/pathops/SkPathOpsDebug.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/pathops/SkPathOpsDebug.cpp
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/pathops/SkPathOpsOp.cpp
|
View
|
1
2
3
4
5
|
4 chunks |
+6 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/pathops/SkPathOpsSimplify.cpp
|
View
|
1
2
3
4
5
|
7 chunks |
+9 lines, -22 lines |
0 comments
|
Download
|
|
M |
src/pathops/SkPathOpsTightBounds.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pathops/SkPathWriter.h
|
View
|
1
2
3
4
5
|
1 chunk |
+31 lines, -22 lines |
0 comments
|
Download
|
|
M |
src/pathops/SkPathWriter.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+281 lines, -106 lines |
0 comments
|
Download
|
|
M |
tests/PathOpsDebug.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 19 (17 generated)
|