55 matrices.
append()->setAll(1.f, 0.f, 0.f,
58 matrices.
append()->setAll(1.f, 0.f, 0.f,
60 0.007f, -0.005f, 1.f);
61 matrices[1].preSkew(0.2f, -0.1f);
62 matrices[1].preRotate(-65.f);
63 matrices[1].preScale(1.2f, .8f);
64 matrices[1].postTranslate(0.f, 60.f);
68 for (
const auto& img : fImages) {
70 for (
const auto& m : matrices) {
72 m.mapRect(&temp, imgB);
76 canvas->
translate(-bounds.fLeft + 10.f, -bounds.fTop + 10.f);
84 {DrawType::kDrawImage, DrawType::kDrawImageRectStrict, DrawType::kDrawImageRectFast}) {
85 for (
const auto& m : matrices) {
86 for (
auto aa : {
false,
true}) {
87 paint.setAntiAlias(aa);
88 for (
auto sampling : {
93 for (
const auto& origImage : fImages) {
98 SkRect src = { img->width() / 4.f, img->height() / 4.f,
99 3.f * img->width() / 4.f, 3.f * img->height() / 4 };
101 3.f / 4.f * img->width(), 3.f / 4.f * img->height()};
103 case DrawType::kDrawImage:
106 case DrawType::kDrawImageRectStrict:
110 case DrawType::kDrawImageRectFast:
119 canvas->
translate(bounds.width() + 10.f, 0);
122 canvas->
translate(0, bounds.height() + 10.f);