commit | fa790f69ce80bf2e192d710ea08b8343cad93fbb | [log] [tgz] |
---|---|---|
author | Wei-Yin Chen (陳威尹) <wychen@chromium.org> | Thu May 23 21:01:50 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu May 23 21:01:50 2019 |
tree | 9721f2a06702ac7c7e1ad7cb2816a2ac6ef2d2c4 | |
parent | 936231536ca2485f3620acc724d95cb43a579005 [diff] |
Reduce side effect of dropping the Bitmap cache in ViewResourceAdapter Before this CL, dropping the Bitmap in ViewResourceAdapter would make isDirty() return true, which would cause re-drawing the next time this UI resource is used in the compositor layer. There is another copy of the Bitmap in native land, so keeping the Java copy for longer than necessary is wasteful. This CL allows dropping the Bitmap without affecting isDirty(), so that we can drop it more frequently without causing re-draws. Bug: 965580 Change-Id: I41f930b0c034b7f373b4c9868ff29a85372a2074 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1622747 Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org> Reviewed-by: David Trainor <dtrainor@chromium.org> Cr-Commit-Position: refs/heads/master@{#662813}
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 .