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

Issue 6307100: round cubic pt coords to SkFDot6, rather than just (int) casting. This gives a

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

Description

round cubic pt coords to SkFDot6, rather than just (int) casting. This gives a more accurate value, and fixes a bug (cr131181) where, due to the cast, we produce a non-monotonic line-segment from the cubic, which triggered an assert.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -9 lines) Patch
M src/core/SkEdge.cpp View 1 chunk +8 lines, -8 lines 0 comments Download
M tests/DrawPathTest.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7
reed1
11 years, 10 months ago (2012-06-15 20:15:14 UTC) #1
caryclark1
lgtm
11 years, 10 months ago (2012-06-15 20:40:53 UTC) #2
reed1
I will defer committing until we can make a plan to update chrome's DRT results ...
11 years, 10 months ago (2012-06-15 20:46:20 UTC) #3
epoger
On 2012/06/15 20:46:20, reed1 wrote: > I will defer committing until we can make a ...
11 years, 10 months ago (2012-06-15 20:49:38 UTC) #4
reed1
Bench results: small round-rects (which use cubics) draw ~1% slower. There is definitely work we ...
11 years, 10 months ago (2012-06-15 21:00:56 UTC) #5
reed1
Its possible there are other changes/hacks to avoid the assert, but I'm not sure they ...
11 years, 10 months ago (2012-06-15 21:02:05 UTC) #6
reed1
11 years, 10 months ago (2012-06-15 21:03:41 UTC) #7
correction: the slowdown might be as high as 3%

bench -repeat 200 -match rrects
Sign in to reply to this message.

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