diff options
author | 2012-05-24 20:32:22 +0000 | |
---|---|---|
committer | 2012-05-24 20:32:22 +0000 | |
commit | d3521f1a8dc07fe84d6a8f2151b0c176ff1ec8ca (patch) | |
tree | 7f04020f99f01833c1d8e63b910c8490b0ae0e34 /samplecode/ClockFaceView.cpp | |
parent | 9797272edfc73f18b4807751377518317991b880 (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 'samplecode/ClockFaceView.cpp')
-rw-r--r-- | samplecode/ClockFaceView.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samplecode/ClockFaceView.cpp b/samplecode/ClockFaceView.cpp index 7d4da1051b..85559929b1 100644 --- a/samplecode/ClockFaceView.cpp +++ b/samplecode/ClockFaceView.cpp @@ -108,7 +108,7 @@ private: class InverseFillPE : public SkPathEffect { public: InverseFillPE() {} - virtual bool filterPath(SkPath* dst, const SkPath& src, SkStrokeRec*) SK_OVERRIDE { + virtual bool filterPath(SkPath* dst, const SkPath& src, SkScalar* width) { *dst = src; dst->setFillType(SkPath::kInverseWinding_FillType); return true; @@ -197,10 +197,10 @@ protected: SkTDArray<SkPoint> pts; SkPathEffect* pe = makepe(0, &pts); - SkStrokeRec rec(SkStrokeRec::kFill_InitStyle); + SkScalar width = -1; SkPath path, dstPath; orig.getTextPath("9", 1, 0, 0, &path); - pe->filterPath(&dstPath, path, &rec); + pe->filterPath(&dstPath, path, &width); SkPaint p; p.setAntiAlias(true); |