mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
The root slice of a surface frame was requesting the construction of an RTree from its DisplayList when it was built from a layer tree, but since the layer tree already does branch culling, it would not benefit from any further culling during `DisplayList::Dispatch`. Further, if there are platform views present in the layer tree then they will need an RTree to accurately convey "pixel ownership" information to the platform, but the root slice lives below any and all platform views, so it is the only slice that doesn't need an RTree for that case. The cost of having an RTree in that slice was the accumulation of information and lists of rects that would never prove useful.