fa5f6ce872
Initialize felt a little too nebulous, and I think the verb for "define registrar entry" is "register". Change-Id: I52f2eb5df5acd46a8b38bb9ea9bb07f4ac8f3789 Reviewed-on: https://skia-review.googlesource.com/c/163990 Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
19 lines
449 B
C++
19 lines
449 B
C++
/*
|
|
* 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 "SkFlattenable.h"
|
|
#include "SkOnce.h"
|
|
|
|
void SkFlattenable::RegisterFlattenablesIfNeeded() {
|
|
static SkOnce once;
|
|
once([]{
|
|
SkFlattenable::PrivateInitializer::InitEffects();
|
|
SkFlattenable::PrivateInitializer::InitImageFilters();
|
|
SkFlattenable::Finalize();
|
|
});
|
|
}
|