Closed Bug 1637953 Opened 4 years ago Closed 4 years ago

Picture caching doesn't work on gmail

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: jrmuizel, Assigned: gw)

References

Details

Attachments

(2 files)

When I turn on picture caching debugging and scroll gmail I get mostly red in the scroll area on my 16" MBP

Flags: needinfo?(gwatson)
Flags: needinfo?(bpeers)
Severity: -- → S4
Priority: -- → P3
Assignee: nobody → gwatson
Flags: needinfo?(gwatson)
Attached image gmail.png

I've got nothing useful to add other than "everything is on slice 4" :\

Flags: needinfo?(bpeers)

Confirmed locally - I'll investigate today, seems like the shape of the display list is tripping up the way slices are created.

What seems to occur here is that WR logic is getting tripped up by the level of nesting of scroll frames.

There are three nested scroll frames. The two outer scroll frames appear to be redundant - I will investigate what causes these before working out the best way to handle such cases in the slicing logic.

Some pages created nesting levels of scroll roots where the outer
scroll frames are redundant (the scrollable size is zero if the
content rect is the same as the frame rect).

In these cases, it is of no benefit to select these as a scroll
root for picture cache tiles.

Do we have a way to test this so we avoid regressions?

Flags: needinfo?(gwatson)
Blocks: 1623887

(In reply to Jeff Muizelaar [:jrmuizel] from comment #5)

Do we have a way to test this so we avoid regressions?

We don't, yet - I opened a bug (https://bugzilla.mozilla.org/show_bug.cgi?id=1638198) to add infrastructure to wrench to allow us to regression test the slicing logic.

Flags: needinfo?(gwatson)
See Also: → 1638198
Pushed by gwatson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e867d81f9019 Fix picture caching with redundant nested scroll roots r=Bert,jrmuizel

I had missed updating one of the wrench reftests - should be fixed now, thanks! (follow up try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=ad3e833d94600fbfd0954f84738bce859d674aaa)

Flags: needinfo?(gwatson)

I will hold off on landing this, as it touches the exact same code as in https://bugzilla.mozilla.org/show_bug.cgi?id=1617524, and I want to ensure we get a solution that fixes both issues (I have tested locally and combining the patches seems to work fine, but I'll wait for review of the other change).

Pushed by gwatson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a2078244558d Fix picture caching with redundant nested scroll roots r=Bert,jrmuizel
Backout by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ff097baf211d Backed out changeset a2078244558d as requested by :gw on slack.

Fixed up the test failure (expected difference of one test getting subpixel, one not on Windows), and pushed a fresh try:

https://treeherder.mozilla.org/#/jobs?repo=try&revision=21c614f28a21232048c256630007d1a59ce22657

Pushed by gwatson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3afdf3a5bec4 Fix picture caching with redundant nested scroll roots r=Bert,jrmuizel
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78

== Change summary for alert #26041 (as of Fri, 22 May 2020 19:37:38 GMT) ==

Improvements:

18% tscrollx windows10-64-shippable-qr opt e10s stylo 0.88 -> 0.72
8% tscrollx linux64-shippable-qr opt e10s stylo 1.10 -> 1.01

For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=26041

Regressions: 1641534
Regressions: 1643435
No longer blocks: 1640496
Regressions: 1661147
Regressions: 1706142
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: