Chromium Code Reviews
Descriptionblimp: Use SwapPromises for readback API.
The tests try to grab a snapshot of the compositor output right after
receiving an update from the engine, and so want to make sure that the
CompositorFrame on which the request is made is from the source frame
that came from the engine.
This is done by reading the commit messages before giving them to
the compositor, and keeping a track of frames drawn for commits made
to ensure that a request is made after the drawn frame reaches the
main thread.
The tracking logic is messy, and requires unnecessary commit tracking,
which especially gets confusing with the mode that uses a threaded
compositor on the client, since each commit/draw no longer maps to
an update from the engine.
This patch replaces that logic with SwapPromises, which is the API
meant to be used for tracking the progress of a frame through the
cc pipeline. The existing logic is still retained for the old code
path, since using SwapPromises requires local commits, which can't
be done in that mode.
BUG=648442
Committed: https://crrev.com/2be75f5c7053765d71b23424d94501194c9e6f81
Cr-Commit-Position: refs/heads/master@{#429230}
Patch Set 1 #
Total comments: 6
Patch Set 2 : comment updated #
Messages
Total messages: 18 (9 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||