Android SurfaceViewRenderer: Add resetStatistics() method

Review URL: https://codereview.webrtc.org/1472323003

Cr-Commit-Position: refs/heads/master@{#10833}
This commit is contained in:
magjed 2015-11-28 03:15:00 -08:00 committed by Commit bot
parent 43f1809920
commit ae54b835ea

View File

@ -243,6 +243,14 @@ public class SurfaceViewRenderer extends SurfaceView
frameRotation = 0;
rendererEvents = null;
}
resetStatistics();
}
/**
* Reset statistics. This will reset the logged statistics in logStatistics(), and
* RendererEvents.onFirstFrameRendered() will be called for the next frame.
*/
public void resetStatistics() {
synchronized (statisticsLock) {
framesReceived = 0;
framesDropped = 0;