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

Issue 2481703004: Fix the meaning of stop_y (Closed)

Created:
4 years, 1 month ago by liyuqian
Modified:
4 years, 1 month ago
Reviewers:
f(malita), caryclark, reed1
CC:
reviews_skia.org, nyerramilli, hcm, mtklein
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Fix the meaning of stop_y stop_y means that we should stop exactly at stop_y, so the last row should be [stop_y - 1, stop_y], not [stop_y, stop_y + 1]. Somehow this misunderstanding didn't trigger any issue until Chrome exercises SkAAClip with some websites (e.g., http://www.lemonde.fr/elections-americaines/article/2016/11/07/deux-programmes-deux-visions-de-l-amerique_5026444_829254.html). When we blitter the extra row [stop_y, stop_y + 1], the SkAAClip will return nullptr by findRow. Later when that nullptr row is used to findX, the crash happened. BUG=chromium:662925, chromium:662776 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2481703004 Committed: https://skia.googlesource.com/skia/+/3ce89dad5bc324dad9c4b77393e16f3bcb7396a7

Patch Set 1 #

Patch Set 2 : Fix the meaning of stop_y #

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

Messages

Total messages: 23 (15 generated)
liyuqian
4 years, 1 month ago (2016-11-07 21:13:02 UTC) #4
reed1
is it clearer to name the field kLastY ?
4 years, 1 month ago (2016-11-07 21:23:10 UTC) #9
liyuqian
On 2016/11/07 21:23:10, reed1 wrote: > is it clearer to name the field kLastY ? ...
4 years, 1 month ago (2016-11-07 21:27:00 UTC) #10
liyuqian
On 2016/11/07 21:27:00, liyuqian wrote: > On 2016/11/07 21:23:10, reed1 wrote: > > is it ...
4 years, 1 month ago (2016-11-08 16:40:24 UTC) #13
reed1
agreed. fBottom always means the coordinate that is past the valid Y coordinates.
4 years, 1 month ago (2016-11-09 16:09:01 UTC) #18
reed1
lgtm
4 years, 1 month ago (2016-11-09 16:09:23 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2481703004/20001
4 years, 1 month ago (2016-11-09 16:10:11 UTC) #21
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 16:53:43 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/3ce89dad5bc324dad9c4b77393e16f3bcb7396a7

Powered by Google App Engine
This is Rietveld 408576698