| 593 | } |
| 594 | |
| 595 | void Layer::setNeedsDisplay() { |
| 596 | if (_isDrawing) { |
| 597 | return; |
| 598 | } |
| 599 | |
| 600 | if (!_needsDisplay) { |
| 601 | _needsDisplay = true; |
| 602 | |
| 603 | _cachedForeground.clear(); |
| 604 | _cachedContent.clear(); |
| 605 | |
| 606 | setChildNeedsDisplay(); |
| 607 | } |
| 608 | } |
| 609 | |
| 610 | bool Layer::needsDisplay() const { |
| 611 | return _needsDisplay; |