Closed Bug 1846902 Opened 2 years ago Closed 2 years ago

Some APZ cleanups related to async transforms

Categories

(Core :: Panning and Zooming, task, P3)

task

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: botond, Assigned: botond)

References

Details

Attachments

(5 files)

A few things I spotted while doing code reading for bug 1827330 that I'd like to clean up.

We don't perform hit testing in APZ any more (that's done in WebRender).
The use cases for which we want to use the most up to date async transform
that reflects all previously received input events even if we haven't
composited their effects yet, are more accurately summarized as "event
handling".

Depends on D185256

Make it an enum class to avoid placing the enumerators themselves into
namespace scope.

This allows the next patch to use the enum in APZCTreeManager.h,
where only the forward declaration of AsyncPanZoomController is visible.

For convenience, add forwarding constants to AsyncPanZoomController.

Depends on D185257

The implementation was unconditionally passing eForEventHandling to
GetCurrentAsyncTransform(), but one of the call sites was actually
used for compositing.

Depends on D185258

Pushed by bballo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/72a0f8d8f122 Remove mentions of 'transient' and 'nontransient' async transforms in the comment above APZCTreeManager::GetScreenToApzcTransform(). r=dlrobertson https://hg.mozilla.org/integration/autoland/rev/4f01e3e561f6 Rename AsyncTransformConsumer::eForHitTesting to eForEventHandling. r=dlrobertson https://hg.mozilla.org/integration/autoland/rev/a05b5784e815 Move AsyncTransformConsumer from AsyncPanZoomController to namespace scope. r=dlrobertson https://hg.mozilla.org/integration/autoland/rev/2e239b493409 Propagate an AsyncTransformConsumer parameter into SidesStuckToRootContent(). r=dlrobertson https://hg.mozilla.org/integration/autoland/rev/7bccadd8e28c Inline GetCurrentAsyncTransformWithOverscroll() into GetAsyncTransformForInputTransformation(). r=dlrobertson
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: