HomeSort by relevance Sort by last modified time
    Searched defs:animatedImage (Results 1 - 2 of 2) sorted by null

  /external/skqp/tests/
AnimatedImageTest.cpp 21 DEF_TEST(AnimatedImage, r) {
79 auto animatedImage = SkAnimatedImage::Make(std::move(androidCodec));
80 if (!animatedImage) {
85 REPORTER_ASSERT(r, defaultRepetitionCount == animatedImage->getRepetitionCount());
87 auto testDraw = [r, &frames, &imageInfo, file](const sk_sp<SkAnimatedImage>& animatedImage,
93 animatedImage->draw(&c);
116 REPORTER_ASSERT(r, animatedImage->currentFrameDuration() == frameInfos[0].fDuration);
118 if (!testDraw(animatedImage, 0)) {
126 const int frameTime = animatedImage->decodeNextFrame();
127 REPORTER_ASSERT(r, frameTime == animatedImage->currentFrameDuration())
    [all...]
  /external/skia/tests/
AnimatedImageTest.cpp 129 auto animatedImage = SkAnimatedImage::Make(std::move(androidCodec));
130 if (!animatedImage) {
134 animatedImage->setRepetitionCount(0);
144 pictures[i].reset(animatedImage->newPictureSnapshot());
147 const auto duration = animatedImage->decodeNextFrame();
171 DEF_TEST(AnimatedImage, r) {
229 auto animatedImage = SkAnimatedImage::Make(std::move(androidCodec));
230 if (!animatedImage) {
235 REPORTER_ASSERT(r, defaultRepetitionCount == animatedImage->getRepetitionCount());
237 auto testDraw = [r, &frames, &imageInfo, file](const sk_sp<SkAnimatedImage>& animatedImage,
    [all...]

Completed in 315 milliseconds