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:
parent
0361032c0b
commit
9584b9ebd8
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user