blob: c0dfd39149bea5950433f2a5b82dbf08dfe642b2 [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"
senorblanco@chromium.org35c5ff02012-08-22 18:34:16 +000024#include "SkBlendImageFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000025#include "SkBlurDrawLooper.h"
26#include "SkBlurImageFilter.h"
27#include "SkBlurMaskFilter.h"
28#include "SkColorFilter.h"
senorblanco@chromium.org392e14e2012-08-20 19:45:02 +000029#include "SkColorFilterImageFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000030#include "SkColorMatrixFilter.h"
31#include "SkColorShader.h"
scroggob3c0f482012-07-02 19:07:57 +000032#include "SkColorTable.h"
33#include "SkComposeShader.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000034#include "SkCornerPathEffect.h"
35#include "SkDashPathEffect.h"
36#include "SkDiscretePathEffect.h"
37#include "SkEmptyShader.h"
scroggo@google.com72ae6bd2012-04-20 18:42:55 +000038#include "SkEmbossMaskFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000039#include "SkFlattenable.h"
40#include "SkGradientShader.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000041#include "SkLayerDrawLooper.h"
42#include "SkLayerRasterizer.h"
djsollen@google.com08337772012-06-26 14:33:13 +000043#include "SkLightingImageFilter.h"
senorblanco@chromium.org35c5ff02012-08-22 18:34:16 +000044#include "SkMagnifierImageFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000045#include "SkMorphologyImageFilter.h"
46#include "SkPathEffect.h"
47#include "SkPixelXorXfermode.h"
robertphillips@google.com088719e2012-06-05 13:22:14 +000048#include "SkStippleMaskFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000049#include "SkTableColorFilter.h"
50#include "SkTestImageFilters.h"
51
caryclark@google.comd26147a2011-12-15 14:16:43 +000052void SkFlattenable::InitializeFlattenables() {
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000053
54 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode)
55 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader)
senorblanco@chromium.orgb2ee33c2012-08-22 16:24:44 +000056 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlendImageFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000057 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper)
58 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter)
59 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter)
60 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader)
scroggob3c0f482012-07-02 19:07:57 +000061 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorTable)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000062 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect)
scroggob3c0f482012-07-02 19:07:57 +000063 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000064 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect)
65 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDashPathEffect)
66 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDilateImageFilter)
67 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDiscretePathEffect)
scroggo@google.com72ae6bd2012-04-20 18:42:55 +000068 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmbossMaskFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000069 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmptyShader)
70 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkErodeImageFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000071 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper)
72 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer)
73 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect)
74 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect)
75 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode)
robertphillips@google.com941ee932012-06-05 12:55:05 +000076 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkStippleMaskFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000077 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect)
bsalomon@google.com82aa7482012-08-13 14:22:17 +000078 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000079
80 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOffsetImageFilter)
81 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter)
82 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter)
83 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter)
84 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter)
85
djsollen@google.com5370cd92012-03-28 20:47:01 +000086 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkFlipPixelRef)
87 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkImageRef_GlobalPool)
88 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef)
89
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000090 SkBlurMaskFilter::InitializeFlattenables();
91 SkColorFilter::InitializeFlattenables();
92 SkGradientShader::InitializeFlattenables();
djsollen@google.com08337772012-06-26 14:33:13 +000093 SkLightingImageFilter::InitializeFlattenables();
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000094 SkTableColorFilter::InitializeFlattenables();
95 SkXfermode::InitializeFlattenables();
caryclark@google.comd26147a2011-12-15 14:16:43 +000096}
97
98#endif