blob: 8b8a2a71a7978442b100cbbbcf5c34b30362d708 [file] [log] [blame]
caryclark@google.comd26147a2011-12-15 14:16:43 +00001/*
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"
caryclark@google.comd26147a2011-12-15 14:16:43 +000013#include "SkFlipPixelRef.h"
14#include "SkImageRef_ashmem.h"
15#include "SkImageRef_GlobalPool.h"
16#include "SkMallocPixelRef.h"
17#include "SkPathEffect.h"
18#include "SkPixelRef.h"
19#include "SkShape.h"
20#include "SkXfermode.h"
21
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000022#include "Sk1DPathEffect.h"
23#include "Sk2DPathEffect.h"
24#include "SkAvoidXfermode.h"
25#include "SkBlurDrawLooper.h"
26#include "SkBlurImageFilter.h"
27#include "SkBlurMaskFilter.h"
28#include "SkColorFilter.h"
29#include "SkColorMatrixFilter.h"
30#include "SkColorShader.h"
31#include "SkCornerPathEffect.h"
32#include "SkDashPathEffect.h"
33#include "SkDiscretePathEffect.h"
34#include "SkEmptyShader.h"
35#include "SkFlattenable.h"
36#include "SkGradientShader.h"
37#include "SkGroupShape.h"
38#include "SkLayerDrawLooper.h"
39#include "SkLayerRasterizer.h"
40#include "SkMorphologyImageFilter.h"
41#include "SkPathEffect.h"
42#include "SkPixelXorXfermode.h"
43#include "SkRectShape.h"
44#include "SkTableColorFilter.h"
45#include "SkTestImageFilters.h"
46
caryclark@google.comd26147a2011-12-15 14:16:43 +000047void SkFlattenable::InitializeFlattenables() {
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000048
49 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode)
50 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader)
51 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper)
52 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter)
53 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter)
54 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader)
55 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect)
56 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect)
57 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDashPathEffect)
58 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDilateImageFilter)
59 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDiscretePathEffect)
60 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmptyShader)
61 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkErodeImageFilter)
62 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkGroupShape)
63 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper)
64 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer)
65 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect)
66 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect)
67 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode)
68 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkRectShape)
69 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkStrokePathEffect)
70 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect)
71 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkShape)
72
73 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOffsetImageFilter)
74 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter)
75 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter)
76 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter)
77 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter)
78
djsollen@google.com5370cd92012-03-28 20:47:01 +000079 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkFlipPixelRef)
80 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkImageRef_GlobalPool)
81 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef)
82
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000083 SkBlurMaskFilter::InitializeFlattenables();
84 SkColorFilter::InitializeFlattenables();
85 SkGradientShader::InitializeFlattenables();
86 SkTableColorFilter::InitializeFlattenables();
87 SkXfermode::InitializeFlattenables();
caryclark@google.comd26147a2011-12-15 14:16:43 +000088}
89
90#endif