blob: 19234788f50d83b9a5c29eacb2e30d2c08a8da96 [file] [log] [blame]
/*
* Copyright 2009-2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/private/base/SkOnce.h"
#include "src/ports/SkFontConfigInterface_direct.h"
SkFontConfigInterface* SkFontConfigInterface::GetSingletonDirectInterface() {
static SkFontConfigInterface* singleton;
static SkOnce once;
once([]{ singleton = new SkFontConfigInterfaceDirect(nullptr); });
return singleton;
}