Make NotifyUpdateScreenMetrics more accurate
Categories
(Core :: Panning and Zooming, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: botond, Assigned: botond)
References
Details
Attachments
(3 files)
GeckoView java code wants to know the root content APZC's async scroll offset (and async zoom level).
APZ has a mechanism to give GeckoView this information during composites, using UiCompositorControllerParent::NotifyUpdateScreenMetrics
.
However, we're a bit confused about what exactly we send it. Here are some of the things we could send it:
- The latest, hot-of-the-press visual scroll offset which due to the frame delay isn't being composited yet.
- The visual scroll offset being composited.
- The main thread's last snapshot of the visual scroll offset.
- The layout scroll offset.
Currently, the WR codepath sends (1) and the Layers codepath sends (4). Bug 1519285 improves things slightly and has the Layers codepath send (3).
Based on discussion here, I believe what we want to be sending it is (2) in both codepaths.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Being in gfx/layers/composite, AsyncCompositionManager.h does not
get to include CompositorBridgeParent.h (which is in gfx/layers/ipc)
as simply '#include "CompositorBridgeParent.h"'.
Depends on D87664
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D87665
Comment 5•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3c9d5f8ee7e1
https://hg.mozilla.org/mozilla-central/rev/250b5004cf20
https://hg.mozilla.org/mozilla-central/rev/c9b17e5a44a8
Description
•