public static interface Window.OnFrameMetricsAvailableListener
Modifier and Type | Method and Description |
---|---|
void |
onFrameMetricsAvailable(Window window,
FrameMetrics frameMetrics,
int dropCountSinceLastInvocation)
Called when information is available for the previously rendered frame.
|
void onFrameMetricsAvailable(Window window, FrameMetrics frameMetrics, int dropCountSinceLastInvocation)
FrameMetrics.FrameMetrics(FrameMetrics)
within this method and defer
additional computation or storage to another thread to avoid unnecessarily
dropping reports.window
- The Window
on which the frame was displayed.frameMetrics
- the available metrics. This object is reused on every call
and thus this reference is not valid outside the scope of this method.dropCountSinceLastInvocation
- the number of reports dropped since the last time
this callback was invoked.