1/*
2 * Copyright 2016 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 "include/core/SkFlattenable.h"
9#include "include/private/SkOnce.h"
10
11void SkFlattenable::RegisterFlattenablesIfNeeded() {
12 static SkOnce once;
13 once([]{
14 SkFlattenable::PrivateInitializer::InitEffects();
15 SkFlattenable::PrivateInitializer::InitImageFilters();
16 SkFlattenable::Finalize();
17 });
18}
19