Home | History | Annotate | Download | only in ports
      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 /* migrated from chrome/src/skia/ext/SkFontHost_fontconfig_direct.cpp */
      9 
     10 #include "SkFontConfigInterface_direct_google3.h"
     11 #include "SkMutex.h"
     12 
     13 SkFontConfigInterface* SkFontConfigInterface::GetSingletonDirectInterface(SkBaseMutex* mutex) {
     14     SkAutoMutexAcquire ac(mutex);
     15     static SkFontConfigInterfaceDirectGoogle3* singleton = nullptr;
     16     if (singleton == nullptr) {
     17         singleton = new SkFontConfigInterfaceDirectGoogle3;
     18     }
     19     return singleton;
     20 }
     21