Go to file
Leon Scroggins III 4c11945a97 Respect repetition count in SkAnimatedImage
Bug: b/63908092

By default use the repetition count stored in the encoded data (if
any). Allow setting the repetition count manually, so that the
animation will stop after n+1 total cycles (unless -1 is used for
infinite).

If the animation is complete, make start reset it.

When the animation is not running, make update return max double (i.e.
no need to update any time soon).

Fix a bug where the first call to update returned -1.

Share write_bm with CodecAnimTest, for debugging.

Update Sample to check isRunning rather than keeping its own record
of whether the animation is running.

Change-Id: I883e4d7325f7a7b23a422fa9d756f9ea3018f0f8
Reviewed-on: https://skia-review.googlesource.com/97082
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
2018-01-22 18:53:47 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Move more internal methods from GrContext to GrContextPriv (take 3) 2018-01-22 16:53:17 +00:00
bin Add directions for when trouble strikes in fetch-skps. 2018-01-04 21:31:01 +00:00
debugger Update SkSurface MakeFromBackend* factories to take an SkColorType. 2017-12-19 18:41:36 +00:00
dm Skotty -> Skottie 2018-01-17 14:15:36 +00:00
docs self check and corrections 2018-01-22 14:04:18 +00:00
example Update SkSurface MakeFromBackend* factories to take an SkColorType. 2017-12-19 18:41:36 +00:00
experimental [sksg] Animator, Scene 2018-01-22 18:31:17 +00:00
fuzz remove unused SkRasterizer 2018-01-21 18:24:11 +00:00
gm Move more internal methods from GrContext to GrContextPriv (take 3) 2018-01-22 16:53:17 +00:00
gn Respect repetition count in SkAnimatedImage 2018-01-22 18:53:47 +00:00
include Respect repetition count in SkAnimatedImage 2018-01-22 18:53:47 +00:00
infra Blacklist changed skp 2018-01-22 18:24:57 +00:00
platform_tools SkQP: better logging 2018-01-19 16:19:23 +00:00
resources Add a GM and images to test SkEncodedOrigin 2018-01-17 16:14:16 +00:00
samplecode Respect repetition count in SkAnimatedImage 2018-01-22 18:53:47 +00:00
site https://skia.org/skqp 2018-01-22 18:42:37 +00:00
src Respect repetition count in SkAnimatedImage 2018-01-22 18:53:47 +00:00
tests Respect repetition count in SkAnimatedImage 2018-01-22 18:53:47 +00:00
third_party make lua a rollable dep, roll it 2018-01-10 17:54:00 +00:00
tools Add Chinese zoom Sample. 2018-01-22 18:20:27 +00:00
.clang-format Mark flatennable macros as block beginning/ending in .clang-format 2017-01-09 15:31:36 +00:00
.gitignore Ignore generated README.recipes.md 2017-10-26 18:07:27 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Changes to site documentation 2018-01-11 19:47:58 +00:00
BUILD.gn [sksg] Animator, Scene 2018-01-22 18:31:17 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll skia/third_party/externals/angle2/ 4747414ed..f661686c1 (1 commit) 2018-01-16 20:46:19 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py Skip AUTHORS check for Skia service accounts 2018-01-02 18:47:01 +00:00
public.bzl remove SK_SUPPORT_LEGACY_RECTMAKELARGEST flag 2018-01-11 13:11:02 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
whitespace.txt Removed general bot upload permissions, whitespace change to test 2017-12-04 13:03:34 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.