blink: Simplify image advancement logic during catch up.
At the end of the catch up loop, we notify observers that the image is dirty and schedule a task for the next frame. The latter is unnecessary since when the image is repainted, it will call StartAnimation to tick itself at the end of the draw call. The original intent of the code was to catch up to the desired frame and synchronously draw it (see [1]). The assumption at the time was that since this draw will happen synchronously, there will be no StartAnimation call to schedule the next frame and it needed to be done immediately after the catch up loop. This is no longer true. We notify observers async after catching up and when they draw, we will get a StartAnimation call to tick the animation. So this additional bit of code is unnecessary complexity. [1]: https://bugs.webkit.org/show_bug.cgi?id=19663#c6 R=pdr@chromium.org Change-Id: If9684b9aa92dd69b5e3b87cadea5fc7582e4e7a4 Reviewed-on: https://chromium-review.googlesource.com/727198Reviewed-by:Philip Rogers <pdr@chromium.org> Commit-Queue: Khushal <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/master@{#510141}
Showing
Please register or sign in to comment