forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OT-PW] Implement PaintWorkletImageCache entry lookup
When the raster task pool is running the raster tasks, it would invoke the PaintWorkletImageCache::PaintImageInTask(). Currently, if an entry for a certain PaintWorkletInput already exist, we would still call the Paint() function to produce a PaintRecord and replace that entry, and then reset the ref-count to 0. This is wrong. This CL fixes it by looking at the cache, and if an entry already exist for the PaintWorkletInput, we can just skip the Paint() call and never reset the ref-count. Unit testing is added. Bug: 907897 Change-Id: I50f6b6c0ae2a551cdc4a6b6aaf2c2e9bc2f6f30b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1497032 Commit-Queue: Xida Chen <[email protected]> Reviewed-by: Khushal <[email protected]> Reviewed-by: vmpstr <[email protected]> Reviewed-by: Stephen McGruer <[email protected]> Cr-Commit-Position: refs/heads/master@{#639271}
- Loading branch information
Showing
4 changed files
with
124 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters