benjaminwagner | 2211a7b | 2015-12-01 11:12:05 -0800 | [diff] [blame] | 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 | |
benjaminwagner | 2211a7b | 2015-12-01 11:12:05 -0800 | [diff] [blame] | 8 | #include "SkFontConfigInterface_direct_google3.h" |
bungeman | 0265707 | 2016-05-02 11:54:13 -0700 | [diff] [blame] | 9 | #include "SkOnce.h" |
benjaminwagner | 2211a7b | 2015-12-01 11:12:05 -0800 | [diff] [blame] | 10 | |
bungeman | 0265707 | 2016-05-02 11:54:13 -0700 | [diff] [blame] | 11 | SkFontConfigInterface* SkFontConfigInterface::GetSingletonDirectInterface() { |
| 12 | static SkFontConfigInterface* singleton; |
| 13 | static SkOnce once; |
| 14 | once([]{ singleton = new SkFontConfigInterfaceDirectGoogle3(); }); |
benjaminwagner | 2211a7b | 2015-12-01 11:12:05 -0800 | [diff] [blame] | 15 | return singleton; |
| 16 | } |