blob: f6ed222d331d41ba33b8d20974046ae3141328ca [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 */
rmistry@google.comd6176b02012-08-23 18:14:13 +00007
caryclark@google.comd26147a2011-12-15 14:16:43 +00008#include "SkTypes.h"
9
caryclark@google.comd26147a2011-12-15 14:16:43 +000010#include "SkBitmapProcShader.h"
caryclark@google.comd26147a2011-12-15 14:16:43 +000011#include "SkMallocPixelRef.h"
12#include "SkPathEffect.h"
13#include "SkPixelRef.h"
caryclark@google.comd26147a2011-12-15 14:16:43 +000014#include "SkXfermode.h"
15
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000016#include "Sk1DPathEffect.h"
17#include "Sk2DPathEffect.h"
epoger@google.comb58772f2013-03-08 09:09:10 +000018#include "SkAnnotation.h"
senorblanco@chromium.org9a6eb0e2013-05-29 20:55:09 +000019#include "SkArithmeticMode.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000020#include "SkAvoidXfermode.h"
senorblanco@chromium.org3f2d45a2013-01-18 20:48:20 +000021#include "SkBicubicImageFilter.h"
senorblanco@chromium.orgd912ca42012-08-23 19:10:04 +000022#include "SkBitmapSource.h"
senorblanco@chromium.org35c5ff02012-08-22 18:34:16 +000023#include "SkBlendImageFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000024#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"
epoger@google.comb58772f2013-03-08 09:09:10 +000035#include "SkData.h"
36#include "SkDataSet.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000037#include "SkDiscretePathEffect.h"
sugoi@google.com781cc762013-01-15 15:40:19 +000038#include "SkDisplacementMapEffect.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000039#include "SkEmptyShader.h"
scroggo@google.com72ae6bd2012-04-20 18:42:55 +000040#include "SkEmbossMaskFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000041#include "SkFlattenable.h"
42#include "SkGradientShader.h"
scroggo@google.com5a7c6be2012-10-04 21:46:08 +000043#include "SkImages.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000044#include "SkLayerDrawLooper.h"
45#include "SkLayerRasterizer.h"
reed@google.com8c6411a2013-05-22 13:21:32 +000046#include "SkLerpXfermode.h"
djsollen@google.com08337772012-06-26 14:33:13 +000047#include "SkLightingImageFilter.h"
senorblanco@chromium.org35c5ff02012-08-22 18:34:16 +000048#include "SkMagnifierImageFilter.h"
senorblanco@chromium.orgb4ca9df2012-09-19 22:50:21 +000049#include "SkMatrixConvolutionImageFilter.h"
senorblanco@chromium.org4a9a6122012-12-04 14:18:50 +000050#include "SkMergeImageFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000051#include "SkMorphologyImageFilter.h"
senorblanco@chromium.org4a9a6122012-12-04 14:18:50 +000052#include "SkOffsetImageFilter.h"
sugoi@google.come3b4c502013-04-05 13:47:09 +000053#include "SkPerlinNoiseShader.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000054#include "SkPixelXorXfermode.h"
robertphillips@google.com088719e2012-06-05 13:22:14 +000055#include "SkStippleMaskFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000056#include "SkTableColorFilter.h"
57#include "SkTestImageFilters.h"
58
caryclark@google.comd26147a2011-12-15 14:16:43 +000059void SkFlattenable::InitializeFlattenables() {
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000060
epoger@google.comb58772f2013-03-08 09:09:10 +000061 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAnnotation)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000062 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode)
senorblanco@chromium.org3f2d45a2013-01-18 20:48:20 +000063 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBicubicImageFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000064 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader)
senorblanco@chromium.orgd912ca42012-08-23 19:10:04 +000065 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSource)
senorblanco@chromium.orgb2ee33c2012-08-22 16:24:44 +000066 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlendImageFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000067 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper)
68 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter)
69 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter)
70 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader)
scroggob3c0f482012-07-02 19:07:57 +000071 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorTable)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000072 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect)
scroggob3c0f482012-07-02 19:07:57 +000073 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000074 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect)
75 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDashPathEffect)
epoger@google.comb58772f2013-03-08 09:09:10 +000076 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkData)
77 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDataSet)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000078 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDilateImageFilter)
79 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDiscretePathEffect)
sugoi@google.com781cc762013-01-15 15:40:19 +000080 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDisplacementMapEffect)
scroggo@google.com72ae6bd2012-04-20 18:42:55 +000081 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmbossMaskFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000082 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmptyShader)
83 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkErodeImageFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000084 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper)
85 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer)
reed@google.com8c6411a2013-05-22 13:21:32 +000086 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLerpXfermode)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000087 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect)
scroggo@google.comd8a6cc82012-09-12 18:53:49 +000088 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(Sk2DPathEffect)
89 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLine2DPathEffect)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000090 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect)
sugoi@google.come3b4c502013-04-05 13:47:09 +000091 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPerlinNoiseShader)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000092 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode)
robertphillips@google.com941ee932012-06-05 12:55:05 +000093 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkStippleMaskFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000094 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect)
bsalomon@google.com82aa7482012-08-13 14:22:17 +000095 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter)
senorblanco@chromium.orgb4ca9df2012-09-19 22:50:21 +000096 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixConvolutionImageFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000097
98 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOffsetImageFilter)
99 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter)
100 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter)
101 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter)
102 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter)
djsollen@google.com5370cd92012-03-28 20:47:01 +0000103 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef)
104
senorblanco@chromium.org9a6eb0e2013-05-29 20:55:09 +0000105 SkArithmeticMode::InitializeFlattenables();
djsollen@google.coma2ca41e2012-03-23 19:00:34 +0000106 SkBlurMaskFilter::InitializeFlattenables();
107 SkColorFilter::InitializeFlattenables();
108 SkGradientShader::InitializeFlattenables();
scroggo@google.com5a7c6be2012-10-04 21:46:08 +0000109 SkImages::InitializeFlattenables();
djsollen@google.com08337772012-06-26 14:33:13 +0000110 SkLightingImageFilter::InitializeFlattenables();
djsollen@google.coma2ca41e2012-03-23 19:00:34 +0000111 SkTableColorFilter::InitializeFlattenables();
112 SkXfermode::InitializeFlattenables();
caryclark@google.comd26147a2011-12-15 14:16:43 +0000113}