| 75 | } |
| 76 | |
| 77 | void DrawingContext::drawImage(const Image& image, const Rect& imageRect, const Rect& targetRect, const Paint* paint) { |
| 78 | canvas()->drawImageRect(image.getSkValue(), |
| 79 | imageRect.getSkValue(), |
| 80 | targetRect.getSkValue(), |
| 81 | SkSamplingOptions(), |
| 82 | paint != nullptr ? &paint->getSkValue() : nullptr, |
| 83 | SkCanvas::kStrict_SrcRectConstraint); |
| 84 | } |
| 85 | |
| 86 | void DrawingContext::clipPath(const Path& path) { |
| 87 | canvas()->clipPath(path.getSkValue(), true); |
no test coverage detected