public class

AnimatedDrawableDiagnosticsImpl

extends Object
implements AnimatedDrawableDiagnostics
java.lang.Object
   ↳ com.facebook.imagepipeline.animated.impl.AnimatedDrawableDiagnosticsImpl

Class Overview

Implementation of AnimatedDrawableDiagnostics that logs extra information and draws a debug overlay..

Summary

Public Constructors
AnimatedDrawableDiagnosticsImpl(AnimatedDrawableUtil animatedDrawableUtil, DisplayMetrics displayMetrics)
Public Methods
void drawDebugOverlay(Canvas canvas, Rect destRect)
Allows the diagnostics code to draw an overlay that may be useful for debugging.
void incrementDrawnFrames(int drawnFrames)
Increments the number of drawn frames for stats purposes.
void incrementDroppedFrames(int droppedFrames)
Increments the number of dropped frames for stats purposes.
void onDrawMethodBegin()
Called when the draw(Canvas) method begins.
void onDrawMethodEnd()
Called when the draw(Canvas) method emds.
void onNextFrameMethodBegin()
Called when the AnimatedDrawable#onNextFrame method begins, which is the method that determines the next frame to render and configures itself to do so.
void onNextFrameMethodEnd()
Called when the AnimatedDrawable#onNextFrame method ends.
void onStartMethodBegin()
Called when the AnimatedDrawable#onStart method begins, which is the method that resets and starts the animation.
void onStartMethodEnd()
Called when the AnimatedDrawable#onStart method ends.
void setBackend(AnimatedDrawableCachingBackend animatedDrawableBackend)
Sets the backend that the AnimatedDrawable is using.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.imagepipeline.animated.base.AnimatedDrawableDiagnostics

Public Constructors

public AnimatedDrawableDiagnosticsImpl (AnimatedDrawableUtil animatedDrawableUtil, DisplayMetrics displayMetrics)

Public Methods

public void drawDebugOverlay (Canvas canvas, Rect destRect)

Allows the diagnostics code to draw an overlay that may be useful for debugging.

Parameters
canvas the canvas to draw to
destRect the rectangle bounds to draw to

public void incrementDrawnFrames (int drawnFrames)

Increments the number of drawn frames for stats purposes.

Parameters
drawnFrames the number of drawn frames

public void incrementDroppedFrames (int droppedFrames)

Increments the number of dropped frames for stats purposes.

Parameters
droppedFrames the number of dropped frames

public void onDrawMethodBegin ()

Called when the draw(Canvas) method begins.

public void onDrawMethodEnd ()

Called when the draw(Canvas) method emds.

public void onNextFrameMethodBegin ()

Called when the AnimatedDrawable#onNextFrame method begins, which is the method that determines the next frame to render and configures itself to do so.

public void onNextFrameMethodEnd ()

Called when the AnimatedDrawable#onNextFrame method ends.

public void onStartMethodBegin ()

Called when the AnimatedDrawable#onStart method begins, which is the method that resets and starts the animation.

public void onStartMethodEnd ()

Called when the AnimatedDrawable#onStart method ends.

public void setBackend (AnimatedDrawableCachingBackend animatedDrawableBackend)

Sets the backend that the AnimatedDrawable is using.

Parameters
animatedDrawableBackend the backend