Index: src/core/SkGlobalInitialization_core.cpp |
diff --git a/src/core/SkGlobalInitialization_core.cpp b/src/core/SkGlobalInitialization_core.cpp |
index ac37073eb3114fd1605e25e9171edb9148c47a75..d7b4a800038cf6b60ef74aeb2c2f74bd2c92a9ce 100644 |
--- a/src/core/SkGlobalInitialization_core.cpp |
+++ b/src/core/SkGlobalInitialization_core.cpp |
@@ -53,7 +53,7 @@ void SkFlattenable::PrivateInitializer::InitCore() { |
InitEffects(); |
}; |
-SK_DECLARE_STATIC_ONCE(once); |
void SkFlattenable::InitializeFlattenablesIfNeeded() { |
- SkOnce(&once, SkFlattenable::PrivateInitializer::InitCore); |
+ static SkOnce once; |
+ once(SkFlattenable::PrivateInitializer::InitCore); |
} |