Allows GenericFontFamilySettings resolution outside main thread

Desktop / Chromium - Fernando Serboncini [chromium.org] - 8 August 2017 16:48 EDT

We now keep a global copy of GFFsettings that is copied to each thread. This allow for global FontCache resolution, while still keeping the the current behavior.

Bug: 722393 Change-Id: Ic2ea5d7c1250cb99ea32936e13be0033e62f1a9b Reviewed-on: https://chromium-review.googlesource.com/583773 Commit-Queue: Fernando Serboncini

87b9c7a Allows GenericFontFamilySettings resolution outside main thread
...enCanvas-text-rendering-in-worker-expected.html | 6 +-
.../OffscreenCanvas-text-rendering-in-worker.html | 6 +-
third_party/WebKit/Source/core/css/BUILD.gn | 2 +
.../WebKit/Source/core/css/CSSFontSelector.cpp | 34 -----------
.../Source/core/css/OffscreenFontSelector.cpp | 66 ++++++++++++++++++++++
.../WebKit/Source/core/css/OffscreenFontSelector.h | 64 +++++++++++++++++++++
.../Source/core/workers/WorkerGlobalScope.cpp | 1 +
.../WebKit/Source/core/workers/WorkerSettings.cpp | 2 +
.../WebKit/Source/core/workers/WorkerSettings.h | 11 ++++
.../OffscreenCanvasRenderingContext2D.cpp | 13 +++--
.../OffscreenCanvasRenderingContext2D.h | 3 +
third_party/WebKit/Source/platform/BUILD.gn | 1 +
.../WebKit/Source/platform/fonts/FontSelector.cpp | 50 ++++++++++++++++
.../WebKit/Source/platform/fonts/FontSelector.h | 7 +++
.../platform/fonts/GenericFontFamilySettings.cpp | 36 ++++++++++++
.../platform/fonts/GenericFontFamilySettings.h | 17 ++++++
16 files changed, 275 insertions(+), 44 deletions(-)

Upstream: git.chromium.org


  • Share