aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkDiscretePathEffect.cpp
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-24 20:32:22 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-24 20:32:22 +0000
commitd3521f1a8dc07fe84d6a8f2151b0c176ff1ec8ca (patch)
tree7f04020f99f01833c1d8e63b910c8490b0ae0e34 /src/effects/SkDiscretePathEffect.cpp
parent9797272edfc73f18b4807751377518317991b880 (diff)
revert 4046 -- GM:pathfill failed on one bot, maybe uninitialized memory somewhere?
git-svn-id: http://skia.googlecode.com/svn/trunk@4047 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects/SkDiscretePathEffect.cpp')
-rw-r--r--src/effects/SkDiscretePathEffect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects/SkDiscretePathEffect.cpp b/src/effects/SkDiscretePathEffect.cpp
index 0536e5646d..06b9d19c68 100644
--- a/src/effects/SkDiscretePathEffect.cpp
+++ b/src/effects/SkDiscretePathEffect.cpp
@@ -26,8 +26,8 @@ SkDiscretePathEffect::SkDiscretePathEffect(SkScalar segLength, SkScalar deviatio
}
bool SkDiscretePathEffect::filterPath(SkPath* dst, const SkPath& src,
- SkStrokeRec* rec) {
- bool doFill = rec->isFillStyle();
+ SkScalar* width) {
+ bool doFill = *width < 0;
SkPathMeasure meas(src, doFill);
uint32_t seed = SkScalarRound(meas.getLength());