blob: 116ba8380ab82a01686e4800bbff5170b9cc07a5 [file] [log] [blame]
benjaminwagner2211a7b2015-12-01 11:12:05 -08001/*
2 * Copyright 2009-2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
benjaminwagner2211a7b2015-12-01 11:12:05 -08008#include "SkFontConfigInterface_direct.h"
bungeman02657072016-05-02 11:54:13 -07009#include "SkOnce.h"
benjaminwagner2211a7b2015-12-01 11:12:05 -080010
bungeman02657072016-05-02 11:54:13 -070011SkFontConfigInterface* SkFontConfigInterface::GetSingletonDirectInterface() {
12 static SkFontConfigInterface* singleton;
13 static SkOnce once;
14 once([]{ singleton = new SkFontConfigInterfaceDirect(); });
benjaminwagner2211a7b2015-12-01 11:12:05 -080015 return singleton;
16}