render_font_warmup_win.h revision a02191e04bc25c4935f804f2c080ae28663d096d
1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CONTENT_PUBLIC_RENDERER_RENDER_FONT_WARMUP_WIN_H_
6#define CONTENT_PUBLIC_RENDERER_RENDER_FONT_WARMUP_WIN_H_
7
8#include "content/common/content_export.h"
9
10class SkFontMgr;
11class SkTypeface;
12
13namespace content {
14
15// Make necessary calls to cache the data for a given font, used before
16// sandbox lockdown.
17CONTENT_EXPORT void DoPreSandboxWarmupForTypeface(SkTypeface* typeface);
18
19// Get the shared font manager used during pre-sandbox warmup for DirectWrite
20// fonts.
21CONTENT_EXPORT SkFontMgr* GetPreSandboxWarmupFontMgr();
22
23}  // namespace content
24
25#endif  // CONTENT_PUBLIC_RENDERER_RENDER_FONT_WARMUP_WIN_H_
26