commit | f48e972b25a15dae4c3ddfc33b2256e11fda5527 | [log] [tgz] |
---|---|---|
author | Philip Rogers <pdr@chromium.org> | Fri Sep 21 18:04:08 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Sep 21 18:04:08 2018 |
tree | db589002f2453a41ebd3d79d538d86a474858426 | |
parent | 0a52713d1b447203e04a5e3e2d554a6fdc51b4ab [diff] |
[BlinkGenPropertyTrees] Minimize damage during layer updates This change introduces cc::Layer::SetChildLayerList and uses it to avoid re-attaching all layers every frame when using layer lists. This is one step closer to sending a layer list to cc instead of a layer tree. The primary change is to remove the call to RemoveChildLayers in PaintArtifactCompositor::Update. Instead of attaching layers to the root layer incrementally, they are built up using LayerListBuilder and then set on the root layer in a single step. This approach revealed some dependencies that are no longer true. Because the host tracks layers that need to push, it is important that Layer's host is set prior to calling any Layer setters. Layer::SetElementId only worked in layer list mode because the Layer's host was not set; this has been fixed. Bug: 879650 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux-blink-gen-property-trees;luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I894297dff3c1cdebacb3485abc3bec1d855e9afc Reviewed-on: https://chromium-review.googlesource.com/1226264 Reviewed-by: enne <enne@chromium.org> Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Commit-Queue: Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#593254}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .