forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify LayerTreeHost::DoUpdateLayers for layer-list and non-list modes
LayerTreeHost::DoUpdateLayers is responsible for initiating property tree building in non-layer-list mode, and setting some hud layer state in layer-list mode. This patch moves list and non-list logic into their respective conditional blocks. Layer list mode currently references the root layer for the hud layer properties. This will likely change in the future, possibly referencing the first layer instead of the root layer. With this refactoring it became clear that HeadsUpDisplayLayer::PrepareForCalculateDrawProperties was no longer a relevant name so the function was simplified and inlined into LayerTreeHost::UpdateHudLayer. Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel Change-Id: Ia1d8a9530e9b9706a70012707c2ba36253e89845 Reviewed-on: https://chromium-review.googlesource.com/1200825 Reviewed-by: enne <enne@chromium.org> Commit-Queue: Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#588577}
- Loading branch information
Showing
4 changed files
with
26 additions
and
53 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
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