[scenic][screen_capture] get buffer_count from importer

This CL updates the ScreenCaptureBufferCollectionImporter to map the
collection_id to the buffer count that will allow screen capture to
access the buffer_count instead of having the client import it with the args.

This CL also updated the renderer type from before where in would take
in a VkRenderer and instead now takes in any rederer type that inherits
Renderer. This allows for more flexibility.

Test: Tests ran on physical device and new tests added
$ fx test screen_capture_unittests

Change-Id: I32fe4dd5f98984345172846fc177c5e693c2a440
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/691790
Commit-Queue: Oliver Lance <ollylance@google.com>
Reviewed-by: Felipe Archondo <felipearchondo@google.com>
Reviewed-by: Emircan Uysaler <emircan@google.com>
8 files changed
tree: 0b410eb5915c5e36bb631af264cf0ea3f1fb5dbb
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. products/
  7. scripts/
  8. sdk/
  9. src/
  10. third_party/
  11. tools/
  12. zircon/
  13. .clang-format
  14. .clang-tidy
  15. .editorconfig
  16. .git-blame-ignore-revs
  17. .gitattributes
  18. .gitignore
  19. .gn
  20. .style.yapf
  21. analysis_options.yaml
  22. AUTHORS
  23. BUILD.gn
  24. CODE_OF_CONDUCT.md
  25. CONTRIBUTING.md
  26. LICENSE
  27. OWNERS
  28. PATENTS
  29. pyrightconfig.json
  30. README.md
  31. rustfmt.toml
README.md

Fuchsia

What is Fuchsia?

Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.

We expect everyone interacting with our project to respect our code of conduct.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.