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