forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfont_prewarmer.mojom
21 lines (18 loc) · 901 Bytes
/
font_prewarmer.mojom
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module chrome.mojom;
// Used to prewarm fonts. This interface is exposed per renderer. Note
// that prewarming actually happens in a background thread.
interface FontPrewarmer {
// Prewarms fonts previously returned via RenderFrameFontFamilyAccessor.
PrewarmFonts(array<string> primary_font_names,
array<string> fallback_font_names);
};
// Used to request the fonts used to generate first contenful paint. This is
// exposed per RenderFrame and is an associated interface.
interface RenderFrameFontFamilyAccessor {
// Requests the set of fonts used to generate first contentful paint.
GetFontFamilyNames() => (array<string> primary_font_names,
array<string> fallback_font_names);
};