Display glitch on IMDB when rotating between portrait and landscape
Categories
(Core :: Graphics, defect, P3)
Tracking
()
People
(Reporter: levente.sacal, Unassigned)
Details
(Whiteboard: [geckoview:p3)
| Reporter | ||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 1•7 years ago
|
||
Updated•7 years ago
|
Is this Bug 1377873 and Bug 1500719?
Also, in Nightly 66.0a1 (2108-01-10) Bug 1518805 hasn't landed.
| Reporter | ||
Comment 3•7 years ago
|
||
For Bug 1377873 and Bug 1500719 you need to enter in fullscreen so I don't think they are the same as this issue. Thanks.
Comment 4•7 years ago
|
||
Here's a profile of Firefox for Android Nightly 2019-01-13 on my SGS6 an the Game of Thrones trailer on IMDB.com, with multiple orientation changes:
Note you don't need to be playing the video for the issue to appear.
The glitches appear to be caused by us reflowing when the viewport changes size due to orientation changes, and we're painting slowly after reflow too, looks like box-shadows are taking a long time to paint.
In fact, 246ms in mozilla::PresShell::ResizeReflow [1] in one of the peaks I looked at. We can spend up to 337 ms painting as well [2], I think mostly due to the box shadow.
Here's a GeckoViewExample profile:
https://perfht.ml/2Hd3sGu
GeckoViewExample actually performs prettey well, we're spending most of our time in painting, and a sometimes resize reflow is on the hot path.
Since we spend most of our time painting here, I'll move this to gfx component.
It's possible that the resize reflow still takes a non trivial amount of time... Maybe if we cached the outgoing layout upon rotation, then if we rotate back we'd be able to reuse the previous orientation's reflow if nothing in the dom or styles has changed?
dbolter: Given that this seems to not be a problem in the geckoview_example app, does this bug need to be closed WONTFIX?
Comment 5•7 years ago
|
||
(In reply to Chris Pearce [:cpearce (GMT+13)] from comment #4)
dbolter: Given that this seems to not be a problem in the geckoview_example app, does this bug need to be closed WONTFIX?
I think we can close it, but do we know if this is a regression?
| Reporter | ||
Comment 6•7 years ago
|
||
I will clear my needinfo as I can't help you here.
Updated•6 years ago
|
Updated•5 years ago
|
Updated•3 years ago
|
Description
•