Remove assertion in getAddrLCD.
Because the underlying mask extends a pixel to the left and right (or top and bottom on vertical LCDs), the requested pixel can actaully be one pixel outside the bounds, thus this assertion is incorrect. http://codereview.appspot.com/105077 git-svn-id: http://skia.googlecode.com/svn/trunk@312 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
cd21c809a9
commit
4484d23ab4
@ -100,7 +100,6 @@ struct SkMask {
|
||||
*/
|
||||
const uint32_t* getAddrLCD(int x, int y) const {
|
||||
SkASSERT(fFormat == kHorizontalLCD_Format || fFormat == kVerticalLCD_Format);
|
||||
SkASSERT(fBounds.contains(x, y));
|
||||
SkASSERT(fImage != NULL);
|
||||
|
||||
return reinterpret_cast<const uint32_t*>(fImage + SkAlign4(fRowBytes * fBounds.height())) +
|
||||
|
Loading…
Reference in New Issue
Block a user