Fix compile warning
authorcaryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 18 Apr 2013 17:44:57 +0000 (17:44 +0000)
committercaryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 18 Apr 2013 17:44:57 +0000 (17:44 +0000)
Review URL: https://codereview.chromium.org/14227005

git-svn-id: http://skia.googlecode.com/svn/trunk@8748 2bbb7eff-a529-9590-31e7-b0007b416f81

src/effects/SkRectShaderImageFilter.cpp

index aee0e63..ada861f 100644 (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()) {