diff options
author | caryclark <caryclark@google.com> | 2016-01-21 07:07:02 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-21 07:07:02 -0800 |
commit | 1a7eb266644d2e1b0968dbca606ca0a91903419d (patch) | |
tree | 94db877ef4ed5be86f57163c26a997e6f76ca9d3 /src/utils/SkDashPath.cpp | |
parent | 46895be9189f9d43f10fe5d57be6ca1eb1a795d2 (diff) |
resolution dependent path measure
When a dash is drawn through a canvas with a scaled up
matrix, path measure needs the pixel resolution through
the matrix to construct the dash with sufficient
resolution.
Pass the resolution through to path measure.
Replicate chrome bug in skia GM.
R=reed@google.com
BUG=530095
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1608353002
Review URL: https://codereview.chromium.org/1608353002
Diffstat (limited to 'src/utils/SkDashPath.cpp')
-rw-r--r-- | src/utils/SkDashPath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/SkDashPath.cpp b/src/utils/SkDashPath.cpp index 4e34b87eac..cd01a9972b 100644 --- a/src/utils/SkDashPath.cpp +++ b/src/utils/SkDashPath.cpp @@ -242,7 +242,7 @@ bool SkDashPath::FilterDashPath(SkPath* dst, const SkPath& src, SkStrokeRec* rec SpecialLineRec lineRec; bool specialLine = lineRec.init(*srcPtr, dst, rec, count >> 1, intervalLength); - SkPathMeasure meas(*srcPtr, false); + SkPathMeasure meas(*srcPtr, false, rec->getResScale()); do { bool skipFirstSegment = meas.isClosed(); |