Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: src/effects/SkRectShaderImageFilter.cpp

Issue 14227005: Fix compile warning (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkRectShaderImageFilter.cpp
===================================================================
--- src/effects/SkRectShaderImageFilter.cpp (revision 8745)
+++ src/effects/SkRectShaderImageFilter.cpp (working copy)
@@ -49,7 +49,7 @@
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()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698