[skotty] Pre-initialize animated props

Force an initial tick on animation initialization.

This prevents inconsistent state flashing if the client starts rendering
before the first tick.

TBR=
Change-Id: Iaec3146b4085c980e6501d6a65dd8f2421a2895f
Reviewed-on: https://skia-review.googlesource.com/92740
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
This commit is contained in:
Florin Malita 2018-01-09 12:19:32 -05:00 committed by Skia Commit-Bot
parent f959092453
commit db38573ca0

View File

@ -897,6 +897,9 @@ Animation::Animation(const ResourceProvider& resources,
AttachContext ctx = { resources, assets, fAnimators };
fDom = AttachComposition(json, &ctx);
// In case the client calls render before the first tick.
this->animationTick(0);
LOG("** Attached %d animators\n", fAnimators.count());
}