commit | 722749381fab9c11055e9f34bbb4da2b1aeb5ab6 | [log] [tgz] |
---|---|---|
author | Collin Baker <collinbaker@chromium.org> | Tue Mar 19 16:18:45 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Mar 19 16:18:45 2019 |
tree | fa5591e2fbef006f84d6ba1926a174f55d3875ac | |
parent | 9f1465fc2d48f0b57fcd3bddc9da45946c97fe5d [diff] |
Explicitly track reason for View layer painting Previously, the reason for a View painting to a layer was implicit based on the presence of a layer and the flag paint_to_layer_ (which was used with different semantics in different places). This explicitly keeps track of the reason for painting to a layer with flags, and centralizes the code for creating and destroying layers based on these flags. This is in preparation for InstallableInkDrops which will add yet another reason for a View to implicitly paint to a layer. This also fixes an apparent bug where setting an identity transform on a View after calling SetPaintToLayer() would cause the layer to be improperly destroyed. Bug: 931964 Change-Id: I5fa56d04bfa79b44a92429fb0307dc470ab8dff2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1525011 Commit-Queue: Collin Baker <collinbaker@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#642003}
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 .