Home | History | Annotate | Download | only in core
      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 "SkFlattenable.h"
      9 #include "SkOnce.h"
     10 
     11 void SkFlattenable::RegisterFlattenablesIfNeeded() {
     12     static SkOnce once;
     13     once([]{
     14         SkFlattenable::PrivateInitializer::InitEffects();
     15         SkFlattenable::PrivateInitializer::InitImageFilters();
     16         SkFlattenable::Finalize();
     17     });
     18 }
     19