fix build warnings

git-svn-id: http://skia.googlecode.com/svn/trunk@8078 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
humper@google.com 2013-03-11 20:32:05 +00:00
parent 7fa1bb4133
commit adef4fefd3

View File

@ -1260,10 +1260,10 @@ bool SkBlurMask::BlurRect(SkMask *dst, const SkRect &src,
int shadow_right = (int)(src.width()) + pad;
int shadow_bottom = (int)(src.height()) + pad;
dst->fBounds.set(shadow_left + src.fLeft,
shadow_top + src.fTop,
shadow_right + src.fRight,
shadow_bottom + src.fBottom);
dst->fBounds.set(SkScalarRoundToInt(shadow_left + src.fLeft),
SkScalarRoundToInt(shadow_top + src.fTop),
SkScalarRoundToInt(shadow_right + src.fRight),
SkScalarRoundToInt(shadow_bottom + src.fBottom));
dst->fRowBytes = dst->fBounds.width();
dst->fFormat = SkMask::kA8_Format;