aboutsummaryrefslogtreecommitdiffstats
path: root/src/ports/SkGlobalInitialization_default.cpp
blob: 6be776a0fd71b2029fb6dd30976e25eda5d03628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * Copyright 2011 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
 
#include "SkTypes.h"

#if !SK_ALLOW_STATIC_GLOBAL_INITIALIZERS

#include "SkBitmapProcShader.h"
#include "SkEffects.h"
#include "SkFlipPixelRef.h"
#include "SkImageRef_ashmem.h"
#include "SkImageRef_GlobalPool.h"
#include "SkMallocPixelRef.h"
#include "SkPathEffect.h"
#include "SkPixelRef.h"
#include "SkShape.h"
#include "SkXfermode.h"

void SkFlattenable::InitializeFlattenables() {
    SkBitmapProcShader::Init();
    SkEffects::Init();
    SkPathEffect::Init();
    SkShape::Init();
    SkXfermode::Init();
}

void SkPixelRef::InitializeFlattenables() {
    SkFlipPixelRef::Init();
    SkImageRef_GlobalPool::Init();
    SkMallocPixelRef::Init();
}

#endif