SF: Introduce new frontend logic

Re-landing changes with perf regression fix. We were updating the geometry every frame. 

Changes to allow creating layer snapshots using the new
and legacy frontend logic. Switching the logic is controlled
by debug flags. By default SF will continue to use the
legacy logic so there should be no functional changes with
this cl.

Bug: 238781169
Test: presubmit

Change-Id: Ied235a8f0c860f368afc39ba3998f381e21774d7
8 files changed