diff options
Diffstat (limited to 'gfx/skia/skia/src/core/SkGlobalInitialization_core.cpp')
-rw-r--r-- | gfx/skia/skia/src/core/SkGlobalInitialization_core.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gfx/skia/skia/src/core/SkGlobalInitialization_core.cpp b/gfx/skia/skia/src/core/SkGlobalInitialization_core.cpp new file mode 100644 index 0000000000..c189a32cb6 --- /dev/null +++ b/gfx/skia/skia/src/core/SkGlobalInitialization_core.cpp @@ -0,0 +1,18 @@ +/* + * Copyright 2016 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "include/core/SkFlattenable.h" +#include "include/private/base/SkOnce.h" + +void SkFlattenable::RegisterFlattenablesIfNeeded() { + static SkOnce once; + once([]{ + SkFlattenable::PrivateInitializer::InitEffects(); + SkFlattenable::PrivateInitializer::InitImageFilters(); + SkFlattenable::Finalize(); + }); +} |