• ckitagawa's avatar
    [Paint Preview] Add font access for Linux · 4951143a
    ckitagawa authored
    Testing on Cluster Telemetry with Linux found an issue where SkFontMgr
    wasn't initialized properly resulting in inability to start the
    compositor. This is due to the lack of font access since we didn't
    call EnsureBlinkInitializedWithSandbox. However, the compositor only
    needs a fraction of the features that come with that call. This CL
    starts the font_service which enables the SkFontMgr to initialize. Note
    that we don't require WebSandboxSupport to be initialized (at least for
    Linux) as all the fonts are stored in the provided SkPictures.
    
    Test coverage for this will be added as part of the end-to-end tests
    for the player. That should catch any issues with other platforms.
    
    Bug: 1023377
    Change-Id: I95a224f6f3759b1b8f8df2989222757ebbd4f12e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1908062
    Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org>
    Reviewed-by: default avatarJochen Eisinger <jochen@chromium.org>
    Reviewed-by: default avatarDominik Röttsches <drott@chromium.org>
    Reviewed-by: default avatarIan Vollick <vollick@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#718149}
    4951143a
DEPS 71 Bytes