DescriptionFix compositor view caching logic
Previously, each time a SceneLayer was set in the compositor view the
root was checked against the cached root. If the check failed, the
layer would be removed from its parent and the current layer would be
stored.
In the case of scene overlays, the root element can change quite
frequently. In this case, the content of the tree does not necessarily
change, but the root does. This root change would cause the cached
layer to be removed from the new tree before it was rendered.
This change checks that the cached root has the new root as an
ancestor before attempting to detach it.
BUG=584340
Committed: https://crrev.com/734c7ef31f9919be22ba14a258d7ca1c33659d42
Cr-Commit-Position: refs/heads/master@{#381729}
Patch Set 1 #Patch Set 2 : reword comment #Messages
Total messages: 8 (3 generated)
|