Lines Matching refs:rect
18 static void map_rect_translate_scale(const SkRect& rect, const SkMatrix& m,
23 V4f r = V4f::Load(&rect);
57 static void map_rect_general(const SkRect& rect, const SkMatrix& matrix,
59 V4f rx{rect.fLeft, rect.fLeft, rect.fRight, rect.fRight};
60 V4f ry{rect.fTop, rect.fBottom, rect.fTop, rect.fBottom};
101 GrQuad GrQuad::MakeFromRect(const SkRect& rect, const SkMatrix& m) {
106 map_rect_translate_scale(rect, m, &x, &y);
110 map_rect_general(rect, m, &x, &y, &w);
131 // If rect, ws must all be 1s so no need to divide
135 bool GrQuad::asRect(SkRect* rect) const {
140 *rect = this->bounds();
143 return fX[0] == rect->fLeft && fY[0] == rect->fTop;