Lines Matching defs:xform
62 void apply(SkRSXform* xform) const {
64 xform->fSCos = fScale * SkScalarCos(rad);
65 xform->fSSin = fScale * SkScalarSin(rad);
66 xform->fTx = fTx;
67 xform->fTy = fTy;
77 SkRSXform xform[N];
82 rec[i].apply(&xform[i]);
91 canvas->drawAtlas(atlas.get(), xform, tex, N, nullptr, &paint);
93 canvas->drawAtlas(atlas.get(), xform, tex, colors, N, SkBlendMode::kSrcIn, nullptr, &paint);
115 SkRSXform* xform = (SkRSXform*)storage.get();
116 SkScalar* widths = (SkScalar*)(xform + count);
139 xform[i].fSCos = tan.x();
140 xform[i].fSSin = tan.y();
141 xform[i].fTx = pos.x() - tan.y() * xy[i].y() - tan.x() * offset;
142 xform[i].fTy = pos.y() + tan.x() * xy[i].y() - tan.y() * offset;
146 &xform[0], font, kGlyphID_SkTextEncoding),
212 // Exercise xform blob and its bounds
266 const SkRSXform xform = SkRSXform::Make(1, 0, 0, 0);
288 canvas->drawAtlas(image, &xform, &tex, &color, 1,