Lines Matching full:matrix
42 static void pts_to_unit_matrix(const SkPoint pts[2], SkMatrix* matrix) {
48 matrix->setSinCos(-vec.fY, vec.fX, pts[0].fX, pts[0].fY);
49 matrix->postTranslate(-pts[0].fX, -pts[0].fY);
50 matrix->postScale(inv, inv);
257 SkMatrix* matrix,
262 if (matrix) {
263 matrix->preConcat(fPtsToUnit);
485 const SkMatrix& matrix,
487 AutoEffectUnref effect(SkNEW_ARGS(GrLinearGradient, (ctx, shader, matrix, tm)));
503 const SkMatrix& matrix,
505 : INHERITED(ctx, shader, matrix, tm) { }
559 SkMatrix matrix;
560 if (!this->getLocalMatrix().invert(&matrix)) {
568 matrix.postConcat(inv);
570 matrix.postConcat(fPtsToUnit);
573 *grEffect = GrLinearGradient::Create(context, *this, matrix, fTileMode);