1/*
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
8#include "include/private/SkOnce.h"
9#include "src/ports/SkFontConfigInterface_direct.h"
10
11SkFontConfigInterface* SkFontConfigInterface::GetSingletonDirectInterface() {
12 static SkFontConfigInterface* singleton;
13 static SkOnce once;
14 once([]{ singleton = new SkFontConfigInterfaceDirect(); });
15 return singleton;
16}
17