xref: /third_party/skia/src/ports/SkFontMgr_FontConfigInterface_factory.cpp
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/skia/src/ports/
1cb93a386Sopenharmony_ci/*
2cb93a386Sopenharmony_ci * Copyright 2008 Google Inc.
3cb93a386Sopenharmony_ci *
4cb93a386Sopenharmony_ci * Use of this source code is governed by a BSD-style license that can be
5cb93a386Sopenharmony_ci * found in the LICENSE file.
6cb93a386Sopenharmony_ci */
7cb93a386Sopenharmony_ci
8cb93a386Sopenharmony_ci#include "include/core/SkFontMgr.h"
9cb93a386Sopenharmony_ci#include "include/ports/SkFontConfigInterface.h"
10cb93a386Sopenharmony_ci#include "include/ports/SkFontMgr_FontConfigInterface.h"
11cb93a386Sopenharmony_ci
12cb93a386Sopenharmony_cisk_sp<SkFontMgr> SkFontMgr::Factory() {
13cb93a386Sopenharmony_ci    sk_sp<SkFontConfigInterface> fci(SkFontConfigInterface::RefGlobal());
14cb93a386Sopenharmony_ci    if (!fci) {
15cb93a386Sopenharmony_ci        return nullptr;
16cb93a386Sopenharmony_ci    }
17cb93a386Sopenharmony_ci    return SkFontMgr_New_FCI(std::move(fci));
18cb93a386Sopenharmony_ci}
19

Indexes created Thu Nov 07 10:32:03 CST 2024