Fix compile warning

Review URL: https://codereview.chromium.org/14227005

git-svn-id: http://skia.googlecode.com/svn/trunk@8748 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
caryclark@google.com 2013-04-18 17:44:57 +00:00
parent 0361032c0b
commit 9584b9ebd8

View File

@ -49,7 +49,7 @@ bool SkRectShaderImageFilter::onFilterImage(Proxy* proxy,
SkIPoint*) {
SkRect rect(fRect);
if (rect.isEmpty()) {
rect = SkRect::MakeWH(source.width(), source.height());
rect = SkRect::MakeWH(SkIntToScalar(source.width()), SkIntToScalar(source.height()));
}
if (rect.isEmpty()) {