Reuse existing paint property node is possible
This is required by subsequence caching for spv2. When we copy a cached subsequence, we won't do actual paint and will use the existing PaintChunkProperties which points to the paint property nodes created during the previous paint. We are sure that the values of these property nodes didn't change since the previous paint because we can use the cached subsequence. To meet this requirement, when building the paint property tree, instead of rebuilding the whole tree by creating all new nodes, we should reuse the existing nodes if their values don't change. The reused nodes should be placed in the new tree. In the future we may also reuse a whole subtree of property nodes. BUG=596983 Review-Url: https://codereview.chromium.org/2144823006 Cr-Commit-Position: refs/heads/master@{#407243}
Showing
This diff is collapsed.
Please register or sign in to comment