Skip to content

Commit

Permalink
Refactor layout effect methods (#19895)
Browse files Browse the repository at this point in the history
Commit phase durations (layout and passive) are stored on the nearest (ancestor) Profiler and bubble up during the commit phase. This bubbling used to be implemented by traversing the return path each time we finished working on a Profiler to find the next nearest Profiler.

This commit removes that traversal. Instead, we maintain a stack of nearest Profiler ancestor while recursing the tree. This stack is maintained in the work loop (since that's where the recursive functions are) and so bubbling of durations has also been moved from commit-work to the work loop.

This PR also refactors the methods used to recurse and apply effects in preparation for the new Offscreen component type.
  • Loading branch information
Brian Vaughn committed Sep 29, 2020
1 parent ba82eea commit 9198a5c
Show file tree
Hide file tree
Showing 2 changed files with 487 additions and 372 deletions.

0 comments on commit 9198a5c

Please sign in to comment.