blob: b28fbcdcb260ed9441803cb2f185aecca53587e5 [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"
caryclark@google.comd26147a2011-12-15 14:16:43 +000019#include "SkXfermode.h"
20
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000021#include "Sk1DPathEffect.h"
22#include "Sk2DPathEffect.h"
23#include "SkAvoidXfermode.h"
24#include "SkBlurDrawLooper.h"
25#include "SkBlurImageFilter.h"
26#include "SkBlurMaskFilter.h"
27#include "SkColorFilter.h"
senorblanco@chromium.org392e14e2012-08-20 19:45:02 +000028#include "SkColorFilterImageFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000029#include "SkColorMatrixFilter.h"
30#include "SkColorShader.h"
scroggob3c0f482012-07-02 19:07:57 +000031#include "SkColorTable.h"
32#include "SkComposeShader.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000033#include "SkCornerPathEffect.h"
34#include "SkDashPathEffect.h"
35#include "SkDiscretePathEffect.h"
36#include "SkEmptyShader.h"
scroggo@google.com72ae6bd2012-04-20 18:42:55 +000037#include "SkEmbossMaskFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000038#include "SkFlattenable.h"
39#include "SkGradientShader.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000040#include "SkLayerDrawLooper.h"
41#include "SkLayerRasterizer.h"
djsollen@google.com08337772012-06-26 14:33:13 +000042#include "SkLightingImageFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000043#include "SkMorphologyImageFilter.h"
44#include "SkPathEffect.h"
45#include "SkPixelXorXfermode.h"
robertphillips@google.com088719e2012-06-05 13:22:14 +000046#include "SkStippleMaskFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000047#include "SkTableColorFilter.h"
48#include "SkTestImageFilters.h"
tomhudson@google.comb8bf9ce2012-08-13 15:48:18 +000049#include "SkMagnifierImageFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000050
caryclark@google.comd26147a2011-12-15 14:16:43 +000051void SkFlattenable::InitializeFlattenables() {
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000052
53 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode)
54 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader)
55 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper)
56 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter)
57 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter)
58 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader)
scroggob3c0f482012-07-02 19:07:57 +000059 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorTable)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000060 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect)
scroggob3c0f482012-07-02 19:07:57 +000061 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000062 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect)
63 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDashPathEffect)
64 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDilateImageFilter)
65 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDiscretePathEffect)
scroggo@google.com72ae6bd2012-04-20 18:42:55 +000066 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmbossMaskFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000067 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmptyShader)
68 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkErodeImageFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000069 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper)
70 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer)
71 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect)
72 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect)
73 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode)
robertphillips@google.com941ee932012-06-05 12:55:05 +000074 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkStippleMaskFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000075 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect)
bsalomon@google.com82aa7482012-08-13 14:22:17 +000076 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000077
78 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOffsetImageFilter)
79 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter)
80 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter)
81 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter)
82 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter)
83
djsollen@google.com5370cd92012-03-28 20:47:01 +000084 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkFlipPixelRef)
85 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkImageRef_GlobalPool)
86 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef)
87
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000088 SkBlurMaskFilter::InitializeFlattenables();
89 SkColorFilter::InitializeFlattenables();
90 SkGradientShader::InitializeFlattenables();
djsollen@google.com08337772012-06-26 14:33:13 +000091 SkLightingImageFilter::InitializeFlattenables();
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000092 SkTableColorFilter::InitializeFlattenables();
93 SkXfermode::InitializeFlattenables();
caryclark@google.comd26147a2011-12-15 14:16:43 +000094}
95
96#endif