Add missing SkIntToScalars.
BUG= Review URL: https://codereview.chromium.org/89663003 git-svn-id: http://skia.googlecode.com/svn/trunk@12411 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
72ca2654ef
commit
73afd3709f
@ -49,8 +49,8 @@ void TileGridTask::draw() {
|
||||
for (int x = 0; x < tiles_needed(full.width(), tile.width()); x++) {
|
||||
SkAutoCanvasRestore ar(&tileCanvas, true/*also save now*/);
|
||||
|
||||
const SkScalar xOffset = x * tile.width(),
|
||||
yOffset = y * tile.height();
|
||||
const SkScalar xOffset = SkIntToScalar(x * tile.width()),
|
||||
yOffset = SkIntToScalar(y * tile.height());
|
||||
SkMatrix matrix = tileCanvas.getTotalMatrix();
|
||||
matrix.postTranslate(-xOffset, -yOffset);
|
||||
tileCanvas.setMatrix(matrix);
|
||||
|
Loading…
Reference in New Issue
Block a user