commit | c690099e270d9be683f5fae295ff5bddb4f833a3 | [log] [tgz] |
---|---|---|
author | xlai-o <xlai@chromium.org> | Wed Oct 11 15:54:30 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Oct 11 15:54:30 2017 |
tree | 36f0853dfaf2cd40966ac33ba7656cfa6dee2998 | |
parent | a8b1707bb6ceec193bfa312308c2c6041e8629ee [diff] |
Limit placeholder canvas to hold at most 3 pending image frames on main thread When main thread is blocked and worker thread keeps animating, there will be many accumulated callbacks that post images from OffscreenCanvas to the placeholder canvas. This CL stops posting more images when there has been 3 images sent to the placeholder and none has returned. Once the main thread becomes unblocked, placeholder returns back with a ReclaimResource request, which will then trigger OffscreenCanvas to post the latest unposted image to placeholder. Bug: 762647 Change-Id: I3145ef424b1d9b1f268e9b4dbe6c36177ecfa7a4 Reviewed-on: https://chromium-review.googlesource.com/690935 Reviewed-by: Justin Novosad <junov@chromium.org> Commit-Queue: Olivia Lai <xlai@chromium.org> Cr-Commit-Position: refs/heads/master@{#507991}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .