Lines Matching defs:matrix
57 static void map_rect_general(const SkRect& rect, const SkMatrix& matrix,
61 map_quad_general(rx, ry, matrix, xs, ys, ws);
71 // If an SkRect is transformed by this matrix, what class of quad is required to represent it.
72 static GrQuad::Type quad_type_for_transformed_rect(const SkMatrix& matrix) {
73 if (matrix.rectStaysRect()) {
75 } else if (matrix.preservesRightAngles()) {
77 } else if (matrix.hasPerspective()) {
86 static GrQuad::Type quad_type_for_points(const SkPoint pts[4], const SkMatrix& matrix) {
87 if (matrix.hasPerspective()) {
91 // quad type derived from 'matrix'. Otherwise don't waste any more time and assume kStandard
95 return quad_type_for_transformed_rect(matrix);
116 GrQuad GrQuad::MakeFromSkQuad(const SkPoint pts[4], const SkMatrix& matrix) {
119 Type type = quad_type_for_points(pts, matrix);
120 if (matrix.isIdentity()) {
124 map_quad_general(xs, ys, matrix, &mx, &my, &mw);