Lines Matching defs:shape
72 void GrSWMaskHelper::drawShape(const GrStyledShape& shape, const SkMatrix& matrix, SkRegion::Op op,
75 paint.setPathEffect(shape.style().refPathEffect());
76 shape.style().strokeRec().applyToPaint(&paint);
84 shape.asPath(&path);
93 void GrSWMaskHelper::drawShape(const GrShape& shape, const SkMatrix& matrix, SkRegion::Op op,
102 if (shape.inverted()) {
103 if (shape.isEmpty() || shape.isLine() || shape.isPoint()) {
109 } else if (shape.isEmpty() || shape.isLine() || shape.isPoint()) {
112 } else if (shape.isRect()) {
113 fDraw.drawRect(shape.rect(), paint);
115 } else if (shape.isRRect()) {
116 fDraw.drawRRect(shape.rrect(), paint);
120 // A complex, or inverse-filled shape, so go through drawPath.
122 shape.asPath(&path);