use kFast_SrcRectConstraint to match drawAtlas semantics

BUG=skia:
TBR=

Review URL: https://codereview.chromium.org/1272743003
This commit is contained in:
reed 2015-08-06 06:51:52 -07:00 committed by Commit bot
parent ab60c5bd9f
commit 2dcc759cd2

View File

@ -33,7 +33,8 @@ static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xfo
canvas->save();
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();
}
}