Commit 774175b2 authored by Xianzhu Wang's avatar Xianzhu Wang Committed by Commit Bot

Don't call DisplayItemRasterInvalidator for cached paint chunks

This improves performance of RasterInvalidator when some paint chunks
are moved from cached subsequences.

No functional behavior change.

Change-Id: I8cc492200c033ee2759c63f908571722c0a09df0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2363649Reviewed-by: default avatarPhilip Rogers <pdr@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#799673}
parent a8bdc146
...@@ -253,7 +253,8 @@ void RasterInvalidator::GenerateRasterInvalidations( ...@@ -253,7 +253,8 @@ void RasterInvalidator::GenerateRasterInvalidations(
new_chunk.id.client); new_chunk.id.client);
} }
if (&new_paint_artifact != old_paint_artifact_) { if (&new_paint_artifact != old_paint_artifact_ &&
!new_chunk.is_moved_from_cached_subsequence) {
DisplayItemRasterInvalidator(*this, function, *old_paint_artifact_, DisplayItemRasterInvalidator(*this, function, *old_paint_artifact_,
new_paint_artifact, old_chunk, new_chunk, new_paint_artifact, old_chunk, new_chunk,
mapper) mapper)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment