Home | History | Annotate | Download | only in gm

Lines Matching refs:xform

61             void apply(SkRSXform* xform) const {
63 xform->fSCos = fScale * SkScalarCos(rad);
64 xform->fSSin = fScale * SkScalarSin(rad);
65 xform->fTx = fTx;
66 xform->fTy = fTy;
76 SkRSXform xform[N];
81 rec[i].apply(&xform[i]);
90 canvas->drawAtlas(atlas.get(), xform, tex, N, nullptr, &paint);
92 canvas->drawAtlas(atlas.get(), xform, tex, colors, N, SkBlendMode::kSrcIn, nullptr, &paint);
112 SkRSXform* xform = (SkRSXform*)storage.get();
113 SkScalar* widths = (SkScalar*)(xform + count);
135 xform[i].fSCos = tan.x();
136 xform[i].fSSin = tan.y();
137 xform[i].fTx = pos.x() - tan.y() * xy[i].y() - tan.x() * offset;
138 xform[i].fTy = pos.y() + tan.x() * xy[i].y() - tan.y() * offset;
141 canvas->drawTextRSXform(text, length, &xform[0], &bounds, paint);
229 const SkRSXform xform = SkRSXform::Make(1, 0, 0, 0);
251 canvas->drawAtlas(image, &xform, &tex, &color, 1,