Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor building visual tree from pending overlays into BuildVisualT…
…reeHelper method This change is a preparation step to implement incremental tree updates and getting rid of needs_rebuild_visual_tree_. Changes made: - Extracted logic that builds visual tree from CommitAndClearPendingOverlays into BuildVisualTreeHelper. - Now CommitAndClearPendingOverlays first resizes video_swap_chains_ if needed, adds overlay that holds root surface, sorts pending overlays by z-order, populates the overlays with video swapchain inputs required to build visual tree and calls BuildVisualTreeHelper. Bug: 1380822 Change-Id: I0a36b973cad0b8cdf981a1eb0afc29b2f2d9719e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4004236 Commit-Queue: Olga Gerchikov <gerchiko@microsoft.com> Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org> Reviewed-by: Rafael Cintron <rafael.cintron@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1073783}
- Loading branch information
1 parent
29d49fa
commit 729c370
Showing
2 changed files
with
64 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters