MCPcopy Create free account
hub / github.com/Snapchat/Valdi / setNeedsDisplay

Method setNeedsDisplay

snap_drawing/src/snap_drawing/cpp/Layers/Layer.cpp:595–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593}
594
595void 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
610bool Layer::needsDisplay() const {
611 return _needsDisplay;

Callers 5

onApplyMethod · 0.80
onResetMethod · 0.80
updateMaskLayerFunction · 0.80
TEST_FFunction · 0.80
insertChildMethod · 0.80

Calls 1

clearMethod · 0.65

Tested by 1

TEST_FFunction · 0.64