Closed Bug 1338238 Opened 7 years ago Closed 7 years ago

Increase minimum active layer size

Categories

(Core :: Graphics: Layers, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1339578

People

(Reporter: jnicol, Assigned: jnicol)

Details

IsItemTooSmallForActiveLayer() in nsDisplayList.cpp checks that a frame is > 16x16 before giving it an active layer. I propose we increase this further. Making seemingly innocent small layers active can have huge knock on effects - forcing much larger ancestor layers to become active, causing excessive allocations and repainting. (Only for the small layer to become inactive again causing yet more repainting.)
Sounds ok to me.
My motivation here is to make web.whatsapp.com work better. 48x48 fixes that case so I'm going to run talos with that change and see how it looks.
You're going to knock off small spinners from the OMTA fast path with this change.
Closing this as a duplicate of bug 1339578, since the solution we have found for that satisfies both problems.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.