-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[parallel-text-shaping] CSS changes"
This reverts commit 1f36b64dd81cc0c4f4443598fb09307b78c7ac84. Reason for revert: Caused a nullptr deref crbug.com/1335246#c23 Original change's description: > [parallel-text-shaping] CSS changes > > This patch changes "core/css", "platform/{fonts,testing}" to make font > loading, both system and web, to work with font threads for prepration > of parallel text shaping[1]. > > This patch is split from the CL[2][3] to exclude `CSSSegmentedFontFace` > and `CSSFontFace` changes to isolate memory related issues > > > Note: `USE_PARALLEL_TEXT_SHAPING` will be defined on Win and MacOS. > > core/css > * Make objects thread-safe. Mostly adding locks. > * Utilize `ExecutionContext::GetTaskRunner()` to call > `FontMatchingMetrics` in owner execution context from font > threads. > > platform/fonts/font_selector.{cc,h} > * Make `SimpleFontData` parameter in reporting function can be cross > thread. > > platform/fonts/font_test_helper.cc > * Adapt for `FontSelector` changes. > > [1] http://crrev.com/c/3211416 Parallel Text Shaping implementation > [2] http://crrev.com/c/3670315: [parallel-text-shaping] CSS changes > [3] http://crrev.com/c/3703810: [parallel-text-shaping] Use > Persistent<FontFaceList> in CSSSegmentedFontFace > > Design Doc: https://bit.ly/3GqpJLD > Font slid: https://bit.ly/3JFTSHa > > Bug: 1264280 > Change-Id: Ia1dbb155a6cd7d653cd2b52e03e1945db823bf42 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3708289 > Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> > Reviewed-by: Kent Tamura <tkent@chromium.org> > Commit-Queue: Kent Tamura <tkent@chromium.org> > Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1015233} Bug: 1264280, 1335246 Change-Id: I80943ab56c6c86234f857f392e95edfb9e775403 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3748643 Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/main@{#1021325} NOKEYCHECK=True GitOrigin-RevId: a2f82f37ee3c62c899778e18169ae00f0582c365
- Loading branch information
1 parent
2c4da8a
commit 42e100c
Showing
12 changed files
with
53 additions
and
318 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
Oops, something went wrong.