/* | |
* 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(); | |
}); | |
} |