Add some SkASSERT's, to try to track down a reliability issue in Chrome.
http://codereview.appspot.com/105075 http://crbug.com/17569 git-svn-id: http://skia.googlecode.com/svn/trunk@317 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
0c1cda7e6b
commit
feef49c4d1
@ -319,11 +319,15 @@ void MaskSuperBlitter::blitH(int x, int y, int width)
|
||||
|
||||
if (n < 0)
|
||||
{
|
||||
SkASSERT(row >= fMask.fImage);
|
||||
SkASSERT(row < fMask.fImage + kMAX_STORAGE + 1);
|
||||
add_aa_span(row, coverage_to_alpha(fe - fb));
|
||||
}
|
||||
else
|
||||
{
|
||||
fb = (1 << SHIFT) - fb;
|
||||
SkASSERT(row >= fMask.fImage);
|
||||
SkASSERT(row + n + 1 < fMask.fImage + kMAX_STORAGE + 1);
|
||||
add_aa_span(row, coverage_to_alpha(fb), n, coverage_to_alpha(fe),
|
||||
(1 << (8 - SHIFT)) - (((y & MASK) + 1) >> SHIFT));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user