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

Issue 6926051: Use double precision when iterating in SkDashPathEffect::filterPath() (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by fmalita
Modified:
11 years, 7 months ago
Reviewers:
reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Use double precision when iterating in SkDashPathEffect::filterPath() Extremely large path_length/dash_length ratios may cause us to loop indefinitely otherwise. R=reed@google.com BUG= Committed: https://code.google.com/p/skia/source/detail?r=6773

Patch Set 1 #

Total comments: 2

Patch Set 2 : Updated per comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -2 lines) Patch
M src/effects/SkDashPathEffect.cpp View 1 1 chunk +5 lines, -2 lines 1 comment Download
M tests/DrawPathTest.cpp View 1 2 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 5
fmalita
11 years, 7 months ago (2012-12-12 21:03:53 UTC) #1
reed1
how slow is the test (in debug build)? https://codereview.appspot.com/6926051/diff/1/src/effects/SkDashPathEffect.cpp File src/effects/SkDashPathEffect.cpp (right): https://codereview.appspot.com/6926051/diff/1/src/effects/SkDashPathEffect.cpp#newcode188 src/effects/SkDashPathEffect.cpp:188: Please ...
11 years, 7 months ago (2012-12-12 21:21:01 UTC) #2
fmalita
On 2012/12/12 21:21:01, reed1 wrote: > how slow is the test (in debug build)? About ...
11 years, 7 months ago (2012-12-12 21:41:01 UTC) #3
reed1
lgtm w/ comment suggestion Can the unittest itself reference the Issue# ? https://codereview.appspot.com/6926051/diff/6001/src/effects/SkDashPathEffect.cpp File src/effects/SkDashPathEffect.cpp ...
11 years, 7 months ago (2012-12-12 21:58:41 UTC) #4
fmalita
11 years, 7 months ago (2012-12-12 22:10:47 UTC) #5
On 2012/12/12 21:58:41, reed1 wrote:
> lgtm w/ comment suggestion
> 
> Can the unittest itself reference the Issue# ?
> 
>
https://codereview.appspot.com/6926051/diff/6001/src/effects/SkDashPathEffect...
> File src/effects/SkDashPathEffect.cpp (right):
> 
>
https://codereview.appspot.com/6926051/diff/6001/src/effects/SkDashPathEffect...
> src/effects/SkDashPathEffect.cpp:191: // (for extreme path_length/dash_length
> ratios).
> // See test_infinite_dash() unittest.

Thanks, I'll update it.
Sign in to reply to this message.

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