-
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.
graphite: Make viz GraphiteCacheController sequence local
Some cc_unittests run both single-threaded and multi-threaded tests in the same process which ends up instantiating viz Display and related resources on different threads - this causes the thread checker in GetOrCreateGraphiteCacheController to fail. This CL addresses that by moving the thread/sequence check to the GraphiteCacheController class and using a sequence local storage slot to hold the weak pointer. This way all SkiaOutputSurfaceImpl instances on the same sequence share the same GraphiteCacheController, but not across threads. This CL also includes other minor changes like reordering constructor parameters, using base::SupportsWeakPtr<T>, minor cleanup, etc. Bug: 1472451 Change-Id: Ia4f1d4939dcbd36ca17492e0a606ec8f2c36dc0e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4815009 Commit-Queue: Peng Huang <penghuang@chromium.org> Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org> Reviewed-by: Peng Huang <penghuang@chromium.org> Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org> Cr-Commit-Position: refs/heads/main@{#1188637}
- Loading branch information
Showing
4 changed files
with
49 additions
and
46 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