Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cfgas_gemodule.cpp
Go to the documentation of this file.
1// Copyright 2020 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "xfa/fgas/font/cfgas_gemodule.h"
6
7#include "third_party/base/check.h"
8#include "xfa/fgas/font/cfgas_fontmgr.h"
9
10namespace {
11
12CFGAS_GEModule* g_module = nullptr;
13
14} // namespace
15
16// static
18 DCHECK(!g_module);
19 g_module = new CFGAS_GEModule();
21}
22
23// static
25 DCHECK(g_module);
26 delete g_module;
27 g_module = nullptr;
28}
29
30// static
32 DCHECK(g_module);
33 return g_module;
34}
35
36CFGAS_GEModule::CFGAS_GEModule()
37 : font_mgr_(std::make_unique<CFGAS_FontMgr>()) {}
38
39CFGAS_GEModule::~CFGAS_GEModule() = default;
static CFGAS_GEModule * Get()
static void Destroy()
CFGAS_FontMgr * GetFontMgr()
static void Create()