tree: 83e426597608040c20925b4cd5ac22042a6c39f3 [path history] [tgz]
  1. meta/
  2. src/
  3. BUILD.gn
  4. README.md
src/ui/examples/flatland-view-provider/README.md

flatland-view-provider example app

There are two components defined here (plus tests):

  • flatland-view-provider.cm
  • flatland-view-provider-vulkan.cm

flatland-view-provider.cm is a simple example app which uses Flatland to display content. It displays colored squares which rotate colors through time. It also listens to touch events and echoes them to the syslog.

flatland-view-provider-vulkan.cm is the same, except it uses Vulkan to render, instead of negotiating CPU-writable buffers with sysmem.

TODO(https://fxbug.dev/42055867): the Vulkan version uses a single filled rect, instead of rendering each quadrant in a different color.

To launch: ffx session add fuchsia-pkg://fuchsia.com/flatland-examples#meta/flatland-view-provider.cm