| 322 | } |
| 323 | |
| 324 | static void CheckLayerImageFillRule(std::shared_ptr<PAGExportSession> session, pag::Layer* layer, |
| 325 | void*) { |
| 326 | auto imageFillRule = static_cast<pag::ImageLayer*>(layer)->imageFillRule; |
| 327 | if (imageFillRule == nullptr) { |
| 328 | return; |
| 329 | } |
| 330 | if (imageFillRule->timeRemap == nullptr || !imageFillRule->timeRemap->animatable()) { |
| 331 | return; |
| 332 | } |
| 333 | auto timeRemap = static_cast<pag::AnimatableProperty<pag::Frame>*>(imageFillRule->timeRemap); |
| 334 | ZeroingTimeRemapOffset(timeRemap); |
| 335 | CheckTimeRemapPlaySpeed(session, timeRemap); |
| 336 | CheckTimeRemapPlayBackwards(session, timeRemap); |
| 337 | } |
| 338 | |
| 339 | static void CheckImageFillRule(std::shared_ptr<PAGExportSession> session, |
| 340 | pag::Composition* composition) { |
nothing calls this directly
no test coverage detected