Hide accurate onFrameRendered calls behind render metrics feature flag

onFrameRendered calls were modified to be based on present fences,
instead of firing immediately after the app releases the buffer to
SurfaceFlinger. Hide this modification behind the render metrics feature
flag to avoid problems encountered by dogfooders.

Bug: 294920725
Test: add log statements to verify legacy mechanism for onFrameRendered
calls is switchable with the video render metrics feature flag
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7e7d3ebb7dd018c3a3a7b00b907488a28353169a)
Merged-In: Ia6f74d8ab72a20eaf167273a1944eddb56f87284
Change-Id: Ia6f74d8ab72a20eaf167273a1944eddb56f87284
5 files changed