| 41 | } |
| 42 | |
| 43 | void PaintMask::apply(SkCanvas* canvas) { |
| 44 | if (_path.isEmpty()) { |
| 45 | canvas->drawRect(_rect.getSkValue(), _paint.getSkValue()); |
| 46 | } else { |
| 47 | canvas->drawPath(_path.getSkValue(), _paint.getSkValue()); |
| 48 | } |
| 49 | |
| 50 | canvas->restore(); |
| 51 | } |
| 52 | |
| 53 | String PaintMask::getDescription() { |
| 54 | if (_path.isEmpty()) { |
nothing calls this directly
no test coverage detected