Home | History | Annotate | Download | only in gm

Lines Matching defs:xform

63             void apply(SkRSXform* xform) const {
65 xform->fSCos = fScale * SkScalarCos(rad);
66 xform->fSSin = fScale * SkScalarSin(rad);
67 xform->fTx = fTx;
68 xform->fTy = fTy;
78 SkRSXform xform[N];
83 rec[i].apply(&xform[i]);
92 canvas->drawAtlas(atlas.get(), xform, tex, N, nullptr, &paint);
94 canvas->drawAtlas(atlas.get(), xform, tex, colors, N, SkBlendMode::kSrcIn, nullptr, &paint);
113 SkRSXform* xform = (SkRSXform*)storage.get();
114 SkScalar* widths = (SkScalar*)(xform + count);
127 xform[i].fSCos = tan.x();
128 xform[i].fSSin = tan.y();
129 xform[i].fTx = pos.x() - tan.y() * xy[i].y() - tan.x() * offset;
130 xform[i].fTy = pos.y() + tan.x() * xy[i].y() - tan.y() * offset;
139 canvas->drawTextRSXform(text, length, &xform[0], &bounds, paint);
198 const SkRSXform xform = SkRSXform::Make(1, 0, 0, 0);
220 canvas->drawAtlas(image, &xform, &tex, &color, 1,