summaryrefslogtreecommitdiff
path: root/chromium/skia/ext/fontmgr_default.h
blob: 92cbe9f2acf970b10d5ab59aab31cd3905aa4468 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2019 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.

#ifndef SKIA_EXT_FONTMGR_DEFAULT_H_
#define SKIA_EXT_FONTMGR_DEFAULT_H_

#include "third_party/skia/include/core/SkTypes.h"

class SkFontMgr;
template <typename T>
class sk_sp;

namespace skia {

// Allows to override the default SkFontMgr instance (returned from
// SkFontMgr::RefDefault()). Must be called before RefDefault() is called for
// the first time in the process.
SK_API void OverrideDefaultSkFontMgr(sk_sp<SkFontMgr> fontmgr);

// Create default SkFontMgr implementation for the current platform.
SK_API sk_sp<SkFontMgr> CreateDefaultSkFontMgr();

}  // namespace skia

#endif  // SKIA_EXT_FONTMGR_DEFAULT_H_