Lines Matching defs:matrix
683 // Wrap the layout in a matrix effect to apply the gradient's matrix:
684 SkMatrix matrix;
685 if (!shader.totalLocalMatrix(args.fPreLocalMatrix)->invert(&matrix)) {
688 // Some two-point conical gradients use a custom matrix here
689 matrix.postConcat(overrideMatrix ? *overrideMatrix : shader.getGradientMatrix());
690 layout = GrMatrixEffect::Make(matrix, std::move(layout));
844 SkTLazy<SkMatrix> matrix;
884 // GPU radial matrix is different from the original matrix, since we map the diff radius
885 // to have |dr| = 1, so manually compute the final gradient matrix here.
888 matrix.set(SkMatrix::Translate(-shader.getStartCenter().fX,
891 matrix->postScale(1 / dr, 1 / dr);
984 return make_gradient(shader, args, std::move(fp), matrix.getMaybeNull());