Invalidate backdrop filter cache when surface property changes.
When a render surface's |clip_rect| or |content_rect| changes, we should invalidate its backdrop filter cache flag even when the damage from under the surface doesn't intersect the surface's current rect. Of course surface property can be changed due to other reasons, such as transform change, effect change or ancestor property change. Not all such changes should cause the backdrop filter cache flag to invalidate, and an example is removal of a child layer. However, currently all such changes are treated uniformly, i.e. will trigger backdrop filter cache flag to invalidate. This CL also removes the constraint to only set the backdrop filter cache flag when there's blur effect so now all render surfaces will have a valid value for this flag. Bug: 1147894 Change-Id: I2f09363f7553ba0c1e6caaa2443391c9c582e441 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2533530Reviewed-by:weiliangc <weiliangc@chromium.org> Commit-Queue: Jun Liu <yjliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#826922}
Showing
Please register or sign in to comment