diff --git a/modules/skottie/include/Skottie.h b/modules/skottie/include/Skottie.h index 2af144c4fd..bcf91f4f7e 100644 --- a/modules/skottie/include/Skottie.h +++ b/modules/skottie/include/Skottie.h @@ -221,6 +221,16 @@ public: */ double fps() const { return fFPS; } + /** + * Animation in point, in frame index units. + */ + double inPoint() const { return fInPoint; } + + /** + * Animation out point, in frame index units. + */ + double outPoint() const { return fOutPoint; } + const SkString& version() const { return fVersion; } const SkSize& size() const { return fSize; } diff --git a/modules/skottie/src/SkottieTest.cpp b/modules/skottie/src/SkottieTest.cpp index cb217c0937..a6e5899986 100644 --- a/modules/skottie/src/SkottieTest.cpp +++ b/modules/skottie/src/SkottieTest.cpp @@ -383,6 +383,9 @@ DEF_TEST(Skottie_Annotations, reporter) { .make(&stream); REPORTER_ASSERT(reporter, animation); + REPORTER_ASSERT(reporter, animation->duration() == 10); + REPORTER_ASSERT(reporter, animation->inPoint() == 0.0); + REPORTER_ASSERT(reporter, animation->outPoint() == 100.0); REPORTER_ASSERT(reporter, observer->fMarkers.size() == 2ul); REPORTER_ASSERT(reporter, std::get<0>(observer->fMarkers[0]) == "marker_1");