SkGlobalInitialization_default.cpp revision d26147adbbdca85f07dff432025afee0c8614387
1/*
2 * Copyright 2011 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 "SkTypes.h"
9
10#if !SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
11
12#include "SkBitmapProcShader.h"
13#include "SkEffects.h"
14#include "SkFlipPixelRef.h"
15#include "SkImageRef_ashmem.h"
16#include "SkImageRef_GlobalPool.h"
17#include "SkMallocPixelRef.h"
18#include "SkPathEffect.h"
19#include "SkPixelRef.h"
20#include "SkShape.h"
21#include "SkXfermode.h"
22
23void SkFlattenable::InitializeFlattenables() {
24    SkBitmapProcShader::Init();
25    SkEffects::Init();
26    SkPathEffect::Init();
27    SkShape::Init();
28    SkXfermode::Init();
29}
30
31void SkPixelRef::InitializeFlattenables() {
32    SkFlipPixelRef::Init();
33    SkImageRef_GlobalPool::Init();
34    SkMallocPixelRef::Init();
35}
36
37#endif
38