Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Issue 1544873002: handle halfway case in scan converter (Closed)

Created:
5 years ago by caryclark
Modified:
4 years, 11 months ago
Reviewers:
reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

handle halfway case in scan converter Scan edges that start at exactly -0.5 aren't trimmed by clipping or by rounding, triggering a debug assert. One way to fix this is to round the top and left down instead of up. Also, move the path initialization of gm/composeshader.cpp to make debugging other path problems easier. R=reed@google.com BUG=skia:2715 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1544873002 Committed: https://skia.googlesource.com/skia/+/6df611574a3cf8abf2617af0d03a5553bb17360d

Patch Set 1 #

Patch Set 2 : move from gm to test #

Patch Set 3 : remove erroneous test changes #

Patch Set 4 : delete from public headers #

Total comments: 4

Patch Set 5 : add more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -24 lines) Patch
M gm/composeshader.cpp View 2 chunks +9 lines, -1 line 0 comments Download
M include/core/SkRect.h View 1 2 3 1 chunk +0 lines, -18 lines 0 comments Download
M src/core/SkScan_Path.cpp View 1 2 3 4 2 chunks +41 lines, -5 lines 0 comments Download
M tests/DrawPathTest.cpp View 1 2 3 2 chunks +40 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
caryclark
My fix may be the wrong approach -- couldn't figure out how to change the ...
5 years ago (2015-12-22 19:40:11 UTC) #2
reed1
Lets try to make dround() itself just a local helper function at the call-site (only ...
4 years, 11 months ago (2016-01-04 17:49:38 UTC) #3
caryclark
On 2016/01/04 17:49:38, reed1 wrote: > Lets try to make dround() itself just a local ...
4 years, 11 months ago (2016-01-04 19:24:10 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1544873002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1544873002/60001
4 years, 11 months ago (2016-01-04 19:24:34 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-04 19:42:49 UTC) #8
reed1
https://codereview.chromium.org/1544873002/diff/60001/src/core/SkScan_Path.cpp File src/core/SkScan_Path.cpp (right): https://codereview.chromium.org/1544873002/diff/60001/src/core/SkScan_Path.cpp#newcode581 src/core/SkScan_Path.cpp:581: * SkScalar x = 0.49999997f; I think the comment ...
4 years, 11 months ago (2016-01-04 19:43:39 UTC) #9
caryclark
https://codereview.chromium.org/1544873002/diff/60001/src/core/SkScan_Path.cpp File src/core/SkScan_Path.cpp (right): https://codereview.chromium.org/1544873002/diff/60001/src/core/SkScan_Path.cpp#newcode581 src/core/SkScan_Path.cpp:581: * SkScalar x = 0.49999997f; On 2016/01/04 19:43:39, reed1 ...
4 years, 11 months ago (2016-01-04 20:58:42 UTC) #10
reed1
lgtm
4 years, 11 months ago (2016-01-04 22:00:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1544873002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1544873002/80001
4 years, 11 months ago (2016-01-04 22:03:00 UTC) #13
commit-bot: I haz the power
4 years, 11 months ago (2016-01-04 22:17:53 UTC) #15
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/6df611574a3cf8abf2617af0d03a5553bb17360d

Powered by Google App Engine
This is Rietveld 408576698