| 54 | } |
| 55 | |
| 56 | std::shared_ptr<PathEffect> PathEffect::MakeCorner(float radius) { |
| 57 | auto effect = SkCornerPathEffect::Make(radius); |
| 58 | if (effect == nullptr) { |
| 59 | return nullptr; |
| 60 | } |
| 61 | return std::shared_ptr<PathEffect>(new SkPathEffectWrapper(std::move(effect))); |
| 62 | } |
| 63 | } // namespace tgfx |