Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(768)

Unified Diff: samplecode/SampleSlides.cpp

Issue 6250051: Change patheffect to take a (new) StrokeRec object, which encapsulates the fill (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 12 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: samplecode/SampleSlides.cpp
===================================================================
--- samplecode/SampleSlides.cpp (revision 4047)
+++ samplecode/SampleSlides.cpp (working copy)
@@ -602,11 +602,9 @@
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;

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b