use kFast_SrcRectConstraint to match drawAtlas semantics
BUG=skia: TBR= Review URL: https://codereview.chromium.org/1272743003
This commit is contained in:
parent
ab60c5bd9f
commit
2dcc759cd2
@ -33,7 +33,8 @@ static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xfo
|
|||||||
|
|
||||||
canvas->save();
|
canvas->save();
|
||||||
canvas->concat(matrix);
|
canvas->concat(matrix);
|
||||||
canvas->drawImageRect(atlas, &tex[i], tex[i].makeOffset(-tex[i].x(), -tex[i].y()), paint);
|
canvas->drawImageRect(atlas, &tex[i], tex[i].makeOffset(-tex[i].x(), -tex[i].y()), paint,
|
||||||
|
SkCanvas::kFast_SrcRectConstraint);
|
||||||
canvas->restore();
|
canvas->restore();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user