| 315 | } |
| 316 | |
| 317 | bool LayerNode::isOutOfDate() const |
| 318 | { |
| 319 | for (const auto& firstRenderItem : mFirstRenderItems) |
| 320 | { |
| 321 | if (firstRenderItem->isOutOfDate()) |
| 322 | return true; |
| 323 | } |
| 324 | |
| 325 | for (const auto& secondRenderItem : mSecondRenderItems) |
| 326 | { |
| 327 | if (secondRenderItem->isOutOfDate()) |
| 328 | return true; |
| 329 | } |
| 330 | |
| 331 | for (const auto& childItem : mChildItems) |
| 332 | { |
| 333 | if (static_cast<const LayerNode*>(childItem)->isOutOfDate()) |
| 334 | return true; |
| 335 | } |
| 336 | |
| 337 | return mOutOfDate; |
| 338 | } |
| 339 | |
| 340 | float LayerNode::getNodeDepth() const |
| 341 | { |