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

Issue 1012763002: Test for glyphs which straddle the edge of device space. (Closed)

Created:
5 years, 9 months ago by bungeman-skia
Modified:
5 years, 9 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

Test for glyphs which straddle the edge of device space. If a glyph ends up with a left edge near the extreme right edge of device space, the right edge may end up at the extreme left. The current clip tests do not test for this situation and attempt to draw the glyphs. This results in the blitters never reaching the right edge of the glyph and so reading from other memory. BUG=chromium:467011 Committed: https://skia.googlesource.com/skia/+/d095f2bf06ca810844233bea9fb06de585643b32

Patch Set 1 #

Patch Set 2 : Check full range if ranges are to be checked. #

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

Messages

Total messages: 8 (2 generated)
bungeman-skia
While we're trying to figure out what might be the 'real' fix, this is a ...
5 years, 9 months ago (2015-03-16 15:17:02 UTC) #2
bungeman-skia
PS2 does a full overflow/clamp check up front.
5 years, 9 months ago (2015-03-16 16:25:25 UTC) #3
reed1
possible additional refactoring... 1. (unsigned)fx < conservative_max 2. capture the test as a stand-alone predicate ...
5 years, 9 months ago (2015-03-16 16:39:28 UTC) #4
reed1
if you want to land early, lgtm but lets add a unittest to exercise this.
5 years, 9 months ago (2015-03-16 16:39:50 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1012763002/20001
5 years, 9 months ago (2015-03-16 16:43:44 UTC) #7
commit-bot: I haz the power
5 years, 9 months ago (2015-03-16 16:49:59 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/d095f2bf06ca810844233bea9fb06de585643b32

Powered by Google App Engine
This is Rietveld 408576698