SkGlobalInitialization_core.cpp 478 B

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