-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use SkColorTable in cc::ColorFilter and make it thread safe
cc::ColorFilter can be used from multiple threads, and the lazy creation of sk_color_filter_ (which was probably based on a concern about the cost of TableARGBColorFilter?) was not thread safe. Now use SkColorTable in TableColorFilter to reduce copy of the color tables, and always create sk_color_filter_ in the constructors of ColorFilter subclasses to make them thread safe. (cherry picked from commit 4034b48) Bug: 1451102, 1434335 Change-Id: Icca998fb949c5b579ff17b516de17e1a05a0d1f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4654951 Reviewed-by: Michael Ludwig <michaelludwig@google.com> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1164409} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4809033 Auto-Submit: Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Michael Ludwig <michaelludwig@google.com> Cr-Commit-Position: refs/branch-heads/5845@{#1596} Cr-Branched-From: 5a5dff6-refs/heads/main@{#1160321}
- Loading branch information
1 parent
31af827
commit 5e9baf1
Showing
4 changed files
with
58 additions
and
84 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