Index: src/utils/win/SkDWrite.cpp |
diff --git a/src/utils/win/SkDWrite.cpp b/src/utils/win/SkDWrite.cpp |
index 2fdd6115b00d9cd5b5aca80fab1f9cf149a9661e..17613f6fad87bbaae5388bd42610f3accf2c3795 100644 |
--- a/src/utils/win/SkDWrite.cpp |
+++ b/src/utils/win/SkDWrite.cpp |
@@ -43,9 +43,9 @@ static void create_dwrite_factory(IDWriteFactory** factory) { |
} |
-SK_DECLARE_STATIC_ONCE(once); |
IDWriteFactory* sk_get_dwrite_factory() { |
- SkOnce(&once, create_dwrite_factory, &gDWriteFactory); |
+ static SkOnce once; |
+ once(create_dwrite_factory, &gDWriteFactory); |
return gDWriteFactory; |
} |