aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/android/SkAnimatedImage.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/android/SkAnimatedImage.h')
-rw-r--r--include/android/SkAnimatedImage.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/android/SkAnimatedImage.h b/include/android/SkAnimatedImage.h
index d74c6bec49..d2f4e3d66c 100644
--- a/include/android/SkAnimatedImage.h
+++ b/include/android/SkAnimatedImage.h
@@ -67,6 +67,14 @@ public:
bool isRunning() const { return fRunning && !fFinished; }
/**
+ * Whether the animation completed.
+ *
+ * Returns true after all repetitions are complete, or an error stops the
+ * animation. Gets reset to false if the animation is restarted.
+ */
+ bool isFinished() const { return fFinished; }
+
+ /**
* Update the current time. If the image is animating, this may decode
* a new frame.
*