Home | History | Annotate | Download | only in gradients

Lines Matching full:matrix

43 static void pts_to_unit_matrix(const SkPoint pts[2], SkMatrix* matrix) {
49 matrix->setSinCos(-vec.fY, vec.fX, pts[0].fX, pts[0].fY);
50 matrix->postTranslate(-pts[0].fX, -pts[0].fY);
51 matrix->postScale(inv, inv);
76 const SkMatrix& matrix) {
77 if (!this->INHERITED::setContext(device, paint, matrix)) {
250 SkMatrix* matrix,
255 if (matrix) {
256 matrix->preConcat(fPtsToUnit);
470 const SkMatrix& matrix,
472 matrix, tm)));
488 const SkMatrix& matrix,
490 : INHERITED(ctx, shader, matrix, tm) { }
540 SkMatrix matrix;
541 if (!this->getLocalMatrix().invert(&matrix)) {
544 matrix.postConcat(fPtsToUnit);
545 return GrLinearGradient::Create(context, *this, matrix, fTileMode);