Commit f630706a authored by Philip Rogers's avatar Philip Rogers Committed by Commit Bot

[BlinkGenPropertyTrees] Only update cc::Layer hierarchy from PAC

This patch stops changing the cc::Layer hierarchy when the
GraphicsLayer hierarchy changes. Instead, we rely on cc::Layers being
updated in PaintArtifactCompositor (PAC).

Bug: 898668
Change-Id: Ib1abb05bc1d8dc7d12ec5f88c8518cf75d077f74
Reviewed-on: https://chromium-review.googlesource.com/c/1313415Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
Commit-Queue: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605470}
parent cac848be
......@@ -377,7 +377,11 @@ bool GraphicsLayer::PaintWithoutCommit(
}
void GraphicsLayer::UpdateChildList() {
// TODO(pdr): Do not attach cc::Layers when using layer lists.
// When using layer lists, cc::Layers are created in PaintArtifactCompositor.
if (RuntimeEnabledFeatures::BlinkGenPropertyTreesEnabled() ||
RuntimeEnabledFeatures::SlimmingPaintV2Enabled()) {
return;
}
cc::Layer* child_host = layer_.get();
child_host->RemoveAllChildren();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment