DescriptionAdd helper class for tests using browser process hit testing
Tests that rely on browser process hit testing are challenging to write
because hit testing will not work until a compositor frame has been
received from an out-of-process iframe's renderer, and a subsequent
compositor frame is received from its parent renderer that contains
the SurfaceId used by the OOPIF.
In trying to write a test that hit tests through nested OOPIFs, trying
to reason it out just based on compositor frame swap events becomes
the kind of concurrency problem that you studied in school and thought,
"Thankfully there are primitives to handle this sort of thing so I
won't have to remember any of this after the exam."
This CL adds a helper class that handles the problem by reaching into
the compositor's Surface code and signalling when a desired Surface
is available for hit testing.
BUG=589572
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
Committed: https://crrev.com/e975655cd86a5d47b0cfdb5c82039bcb5a561665
Cr-Commit-Position: refs/heads/master@{#378044}
Patch Set 1 #
Total comments: 10
Patch Set 2 : Rebase only #Patch Set 3 : Review comments addressed + refactor for Mac #Patch Set 4 : Fix gcc compile warnings #Messages
Total messages: 12 (6 generated)
|