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

Unified Diff: include/effects/SkDashPathEffect.h

Issue 6498088: try to make dashing faster, by allowing it to be expressed as an array of points Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 13 years, 2 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
« no previous file with comments | « include/core/SkPathEffect.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkDashPathEffect.h
===================================================================
--- include/effects/SkDashPathEffect.h (revision 5389)
+++ include/effects/SkDashPathEffect.h (working copy)
@@ -51,6 +51,8 @@
protected:
SkDashPathEffect(SkFlattenableReadBuffer&);
virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE;
+ virtual bool onFilterPoints(const PointsRec&, const SkPaint&,
+ PointsRec*, PointAllocator, void*) SK_OVERRIDE;
private:
SkScalar* fIntervals;
@@ -61,6 +63,8 @@
SkScalar fIntervalLength;
bool fScaleToFit;
+ bool dashLines(const PointsRec&, PointsRec*, PointAllocator, void*);
+
typedef SkPathEffect INHERITED;
};
« no previous file with comments | « include/core/SkPathEffect.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

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