Removes Lines::len and annotate the code.

The Lines struct contains multiple vectors of different length.

Change-Id: I0fad896e41b9feedad0ed32d7a7c5e2719df2de8
Reviewed-on: https://fuchsia-review.googlesource.com/c/forma/+/689487
Reviewed-by: DragoČ™ Tiselice <dtiselice@google.com>
1 file changed
tree: 4e24c389525d7e833e3077cde86e55175618d17a
  1. .cargo/
  2. assets/
  3. benches/
  4. demo/
  5. e2e_tests/
  6. gpu/
  7. pristine/
  8. web/
  9. .gitignore
  10. AUTHORS
  11. Cargo.toml
  12. clone.sh
  13. CONTRIBUTING.md
  14. LICENSE
  15. PATENTS
  16. presubmit.sh
  17. README.md
README.md

forma. The parallel CPU vector renderer

forma is a highly efficient vector content renderer that makes use of all processor cores and vector units.

Getting started

Requirements:

Clone the forma repositories from Fuchsia by running:

./clone.sh

Build the demo:

RUSFTLAGS="-C target-cpu=native" cargo build --release

Then run:

./target/release/demo rive assets/rive/juice.riv