commit | 549a2d98aaa9ba476dbc7a6b284f269272763faa | [log] [tgz] |
---|---|---|
author | Khushal <khushalsagar@chromium.org> | Wed Jun 19 21:37:40 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jun 19 21:37:40 2019 |
tree | 897a928577d279dc784a17440c16a8b7ba330047 | |
parent | 17dceb9cc274ce1d7df05e82f685e959603b3f5b [diff] |
canvas2d: Avoid gpu command buffer flushes for snapshots. The shared image code path currently results in a flush each time the resource is snapshotted. The primary source of this is resetting of the GL filter each time the accelerated image is destroyed, so do it lazily now when the resource is sent to the display compositor. This seems more error prone but is consistent with the existing path. R=fserb@chromium.org Change-Id: Ia9c5223d15bfc35227e2a915b024d6cba3f02eb4 Bug: 974778 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1663071 Commit-Queue: Antoine Labour <piman@chromium.org> Reviewed-by: Kenneth Russell <kbr@chromium.org> Reviewed-by: Antoine Labour <piman@chromium.org> Auto-Submit: Khushal <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/master@{#670659}
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 .