[roll] Roll fuchsia [goldfish] Integrate sync device with goldfish display.

Previously, we always assumed that display ColorBuffers are
displayed immediately after posted, and we send OnVsync events
to clients based on this assumption. However, rcFbPost operation
on host could take some time as well, and this could make pending
|rcFbPost| commands accumulate in the pipe, causing performance
issues like fxb/67425.

This change solves the issue by introducing goldfish Sync device to
display. After each rcFbPost() command, we create a goldfish
sync object on host, and start an async wait until host finishes
posting the FrameBuffer. The |images| field in OnVsync() event
won't be updated until the sync object is signalled, which
ensures clients always use FrameBuffers not being used by host,
and provides a flow control mechanism for goldfish display.

The Vsync signals sent from the display driver are still "simulated"
by Fuchsia -- This matches other guest systems' current presenting
behaviors (e.g. goldfish-opengl/system/hwc2/EmuHWC2.cpp for Android)
and could provide a steady OnVsync event flow for clients. We could
replace them with host pipe-based hardware signals once we have them
implemented on host.

Original-Bug: 65038
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/498998
Original-Revision: 3593774b429f843b19fa16c0e31b79907fce6297
GitOrigin-RevId: 0ffa73e100f3c9da1555b5279f02db1286fcea0f
Change-Id: I55fb9df36c4a0b02705877fc486fa98bcd53ebf9
1 file changed
tree: e078086aa01acf46b67c22a31e85d565c0a7c01e
  1. garnet/
  2. infra/
  3. peridot/
  4. third_party/
  5. topaz/
  6. zircon/
  7. firmware
  8. flower
  9. jiri.lock
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.