|
Change patheffect to take a (new) StrokeRec object, which encapsulates the fill
or stroke parameters for a path.
Today, the patheffect only sees if the caller was going to stroke or fill, and if
stroke, it just sees the width. With this change, the effect can see all of the
related parameters (e.g. cap/join/miter). No other change is intended at this
time.
After this change, I hope to use this additional data to allow SkDashPathEffect
to, at times, apply the stroke as part of its effect, which may be much more
efficient than first dashing, and then reading that and stroking it.
Most of these files changed just because of the new parameter to filterPath. The
key changes are in SkPathEffect.[h,cpp], SkPaint.cpp and SkScalerContext.cpp
Committed: https://code.google.com/p/skia/source/detail?r=4046
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+261 lines, -213 lines) |
Patch |
|
M |
bench/DashBench.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
include/core/SkPathEffect.h
|
View
|
1
2
|
4 chunks |
+94 lines, -12 lines |
0 comments
|
Download
|
|
M |
include/effects/Sk1DPathEffect.h
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
include/effects/Sk2DPathEffect.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
include/effects/SkCornerPathEffect.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
include/effects/SkDashPathEffect.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
include/effects/SkDiscretePathEffect.h
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
samplecode/ClockFaceView.cpp
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
samplecode/SampleAll.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
samplecode/SampleSlides.cpp
|
View
|
|
1 chunk |
+3 lines, -5 lines |
0 comments
|
Download
|
|
M |
samplecode/SampleTextEffects.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/core/SkPaint.cpp
|
View
|
1
|
1 chunk |
+15 lines, -49 lines |
0 comments
|
Download
|
|
M |
src/core/SkPathEffect.cpp
|
View
|
1
|
3 chunks |
+77 lines, -98 lines |
0 comments
|
Download
|
|
M |
src/core/SkScalerContext.cpp
|
View
|
1
|
1 chunk |
+18 lines, -14 lines |
0 comments
|
Download
|
|
M |
src/core/SkStroke.cpp
|
View
|
|
1 chunk |
+27 lines, -1 line |
0 comments
|
Download
|
|
M |
src/effects/Sk1DPathEffect.cpp
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/effects/Sk2DPathEffect.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkCornerPathEffect.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkDashPathEffect.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/effects/SkDiscretePathEffect.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/ports/SkGlobalInitialization_default.cpp
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
Total messages: 2
|