blob: 9e863d4f0b9bc3c8346ebbb339b42383f8d2b858 [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_google3.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 SkFontConfigInterfaceDirectGoogle3(); });
benjaminwagner2211a7b2015-12-01 11:12:05 -080015 return singleton;
16}