[sf] Only trace rebuildLayerStacks if there are changes

Clean up perfetto traces  to only show
tags when they are interesting.

Bug: 292225846
Test: open trace in perfetto
Change-Id: I1e3744abb08c7a3b34244db8ce8be5299cf86b19
1 file changed