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

Unified Diff: src/effects/SkBlendImageFilter.cpp

Issue 18622004: use SkIntToScalar (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 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/SkBlendImageFilter.cpp
diff --git a/src/effects/SkBlendImageFilter.cpp b/src/effects/SkBlendImageFilter.cpp
index 7b98644ec79b3292197eee3b214d8bc3ca3024f8..1c40ca8a39b5eb846d437abd59461e7a2ab1c92f 100644
--- a/src/effects/SkBlendImageFilter.cpp
+++ b/src/effects/SkBlendImageFilter.cpp
@@ -86,9 +86,11 @@ bool SkBlendImageFilter::onFilterImage(Proxy* proxy,
SkCanvas canvas(*dst);
SkPaint paint;
paint.setXfermodeMode(SkXfermode::kSrc_Mode);
- canvas.drawBitmap(background, backgroundOffset.fX, backgroundOffset.fY, &paint);
+ canvas.drawBitmap(background, SkIntToScalar(backgroundOffset.fX),
+ SkIntToScalar(backgroundOffset.fY), &paint);
paint.setXfermodeMode(modeToXfermode(fMode));
- canvas.drawBitmap(foreground, foregroundOffset.fX, foregroundOffset.fY, &paint);
+ canvas.drawBitmap(foreground, SkIntToScalar(foregroundOffset.fX),
+ SkIntToScalar(foregroundOffset.fY), &paint);
return true;
}
« 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