use SkIntToScalar
BUG= R=senorblanco@chromium.org Review URL: https://codereview.chromium.org/18622004 git-svn-id: http://skia.googlecode.com/svn/trunk@9981 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
87fbf4fc73
commit
c1a8684a47
@ -86,9 +86,11 @@ bool SkBlendImageFilter::onFilterImage(Proxy* proxy,
|
|||||||
SkCanvas canvas(*dst);
|
SkCanvas canvas(*dst);
|
||||||
SkPaint paint;
|
SkPaint paint;
|
||||||
paint.setXfermodeMode(SkXfermode::kSrc_Mode);
|
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));
|
paint.setXfermodeMode(modeToXfermode(fMode));
|
||||||
canvas.drawBitmap(foreground, foregroundOffset.fX, foregroundOffset.fY, &paint);
|
canvas.drawBitmap(foreground, SkIntToScalar(foregroundOffset.fX),
|
||||||
|
SkIntToScalar(foregroundOffset.fY), &paint);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user