| 20 | |
| 21 | namespace tgfx { |
| 22 | std::shared_ptr<ImagePattern> ImagePattern::Make(std::shared_ptr<Image> image, TileMode tileModeX, |
| 23 | TileMode tileModeY, |
| 24 | const SamplingOptions& sampling) { |
| 25 | if (image == nullptr) { |
| 26 | return nullptr; |
| 27 | } |
| 28 | return std::shared_ptr<ImagePattern>( |
| 29 | new ImagePattern(std::move(image), tileModeX, tileModeY, sampling)); |
| 30 | } |
| 31 | |
| 32 | ImagePattern::ImagePattern(std::shared_ptr<Image> image, TileMode tileModeX, TileMode tileModeY, |
| 33 | const SamplingOptions& sampling) |
nothing calls this directly
no outgoing calls
no test coverage detected