Android SurfaceViewRenderer: Add resetStatistics() method
Review URL: https://codereview.webrtc.org/1472323003 Cr-Commit-Position: refs/heads/master@{#10833}
This commit is contained in:
parent
43f1809920
commit
ae54b835ea
@ -243,6 +243,14 @@ public class SurfaceViewRenderer extends SurfaceView
|
|||||||
frameRotation = 0;
|
frameRotation = 0;
|
||||||
rendererEvents = null;
|
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) {
|
synchronized (statisticsLock) {
|
||||||
framesReceived = 0;
|
framesReceived = 0;
|
||||||
framesDropped = 0;
|
framesDropped = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user