Closed Bug 1731700 Opened 3 years ago Closed 3 years ago

Simplify test usage of IAPZHitTester

Categories

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

task

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: botond, Assigned: botond)

References

Details

Attachments

(9 files)

In bug 1729118, I extracted an IAPZHitTester interface to encapsulate the implementation of the hit-testing used by APZ, with production code using a WebRender implementation, and APZ gtests using a test-only implementation.

Currently, the test-only implementation, InternalHitTester, is a "full-featured" hit test implementation that walks the hit testing tree; it's the same code that was used in production with Layers but factored out and moved into test code.

The only gtests that really need such a full-featured implementation are the ones in TestHitTesting.cpp, which will be ported to mochitest (where they can exercise the production WebRender hit-test codepath) in bug 1730606.

Once TestHitTesting.cpp is gone, the remaining gtests can be modified to use something simpler and more purpose-suited to the tests, and the "full-featured" InternalHitTester implementation can be removed.

Blocks: 1738152

These tests do not actually perform hit testing.

Depends on D129758

Depends on D129759

Pushed by bballo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/455732aeb3ec
Introduce MockHitTester. r=hiro
https://hg.mozilla.org/integration/autoland/rev/e03f11e2b19a
Port TestSnapping to use MockHitTester. r=hiro
https://hg.mozilla.org/integration/autoland/rev/fdfcadbb16da
Port TestSnappingOnMomentum to use MockHitTester. r=hiro
https://hg.mozilla.org/integration/autoland/rev/5924e09c47c9
Port TestEventRegions to use MockHitTester. r=hiro
https://hg.mozilla.org/integration/autoland/rev/a635de37c836
Port TestEventResult to use MockHitTester. r=hiro
https://hg.mozilla.org/integration/autoland/rev/35d5bf32530f
Port TestOverscroll to use MockHitTester. r=hiro
https://hg.mozilla.org/integration/autoland/rev/08e3116697d7
Port TestScrollHandoff to use MockHitTester. r=hiro
https://hg.mozilla.org/integration/autoland/rev/0dec63bec4c1
Do not use InternalHitTester in TestWRScrollData.cpp. r=hiro
https://hg.mozilla.org/integration/autoland/rev/5e4df731f4d1
Remove InternalHitTester. r=hiro
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: