aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SampleSlides.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleSlides.cpp')
-rw-r--r--samplecode/SampleSlides.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/samplecode/SampleSlides.cpp b/samplecode/SampleSlides.cpp
index 49a4ee5945..f800f43f51 100644
--- a/samplecode/SampleSlides.cpp
+++ b/samplecode/SampleSlides.cpp
@@ -602,11 +602,9 @@ public:
Line2DPathEffect(SkScalar width, const SkMatrix& matrix)
: Sk2DPathEffect(matrix), fWidth(width) {}
- virtual bool filterPath(SkPath* dst, const SkPath& src, SkScalar* width)
- {
- if (this->INHERITED::filterPath(dst, src, width))
- {
- *width = fWidth;
+ virtual bool filterPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec) SK_OVERRIDE {
+ if (this->INHERITED::filterPath(dst, src, rec)) {
+ rec->setStrokeStyle(fWidth);
return true;
}
return false;