vc tracing: refactoring prior perfetto migration

Instantiate polymorphic ViewCapture instances through ViewCaptureFactory,
instead of referencing concrete classes.

Bug: 323166383
Test: presubmit
Flag: N/A
Change-Id: Iecf0c8c4f1b1d6d416838739f612bbc862278a29
3 files changed