blob: 297f138a780bb7cddbad33e11629f0b302f3b7f8 [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"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000019#include "SkAvoidXfermode.h"
senorblanco@chromium.org3f2d45a2013-01-18 20:48:20 +000020#include "SkBicubicImageFilter.h"
senorblanco@chromium.orgd912ca42012-08-23 19:10:04 +000021#include "SkBitmapSource.h"
senorblanco@chromium.org35c5ff02012-08-22 18:34:16 +000022#include "SkBlendImageFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000023#include "SkBlurDrawLooper.h"
24#include "SkBlurImageFilter.h"
25#include "SkBlurMaskFilter.h"
26#include "SkColorFilter.h"
senorblanco@chromium.org392e14e2012-08-20 19:45:02 +000027#include "SkColorFilterImageFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000028#include "SkColorMatrixFilter.h"
29#include "SkColorShader.h"
scroggob3c0f482012-07-02 19:07:57 +000030#include "SkColorTable.h"
31#include "SkComposeShader.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000032#include "SkCornerPathEffect.h"
33#include "SkDashPathEffect.h"
epoger@google.comb58772f2013-03-08 09:09:10 +000034#include "SkData.h"
35#include "SkDataSet.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000036#include "SkDiscretePathEffect.h"
sugoi@google.com781cc762013-01-15 15:40:19 +000037#include "SkDisplacementMapEffect.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000038#include "SkEmptyShader.h"
scroggo@google.com72ae6bd2012-04-20 18:42:55 +000039#include "SkEmbossMaskFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000040#include "SkFlattenable.h"
41#include "SkGradientShader.h"
scroggo@google.com5a7c6be2012-10-04 21:46:08 +000042#include "SkImages.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000043#include "SkLayerDrawLooper.h"
44#include "SkLayerRasterizer.h"
reed@google.com8c6411a2013-05-22 13:21:32 +000045#include "SkLerpXfermode.h"
djsollen@google.com08337772012-06-26 14:33:13 +000046#include "SkLightingImageFilter.h"
senorblanco@chromium.org35c5ff02012-08-22 18:34:16 +000047#include "SkMagnifierImageFilter.h"
senorblanco@chromium.orgb4ca9df2012-09-19 22:50:21 +000048#include "SkMatrixConvolutionImageFilter.h"
senorblanco@chromium.org4a9a6122012-12-04 14:18:50 +000049#include "SkMergeImageFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000050#include "SkMorphologyImageFilter.h"
senorblanco@chromium.org4a9a6122012-12-04 14:18:50 +000051#include "SkOffsetImageFilter.h"
sugoi@google.come3b4c502013-04-05 13:47:09 +000052#include "SkPerlinNoiseShader.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000053#include "SkPixelXorXfermode.h"
robertphillips@google.com088719e2012-06-05 13:22:14 +000054#include "SkStippleMaskFilter.h"
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000055#include "SkTableColorFilter.h"
56#include "SkTestImageFilters.h"
57
caryclark@google.comd26147a2011-12-15 14:16:43 +000058void SkFlattenable::InitializeFlattenables() {
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000059
epoger@google.comb58772f2013-03-08 09:09:10 +000060 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAnnotation)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000061 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode)
senorblanco@chromium.org3f2d45a2013-01-18 20:48:20 +000062 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBicubicImageFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000063 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader)
senorblanco@chromium.orgd912ca42012-08-23 19:10:04 +000064 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSource)
senorblanco@chromium.orgb2ee33c2012-08-22 16:24:44 +000065 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlendImageFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000066 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper)
67 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter)
68 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter)
69 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader)
scroggob3c0f482012-07-02 19:07:57 +000070 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorTable)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000071 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect)
scroggob3c0f482012-07-02 19:07:57 +000072 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000073 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect)
74 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDashPathEffect)
epoger@google.comb58772f2013-03-08 09:09:10 +000075 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkData)
76 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDataSet)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000077 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDilateImageFilter)
78 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDiscretePathEffect)
sugoi@google.com781cc762013-01-15 15:40:19 +000079 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDisplacementMapEffect)
scroggo@google.com72ae6bd2012-04-20 18:42:55 +000080 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmbossMaskFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000081 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmptyShader)
82 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkErodeImageFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000083 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper)
84 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer)
reed@google.com8c6411a2013-05-22 13:21:32 +000085 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLerpXfermode)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000086 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect)
scroggo@google.comd8a6cc82012-09-12 18:53:49 +000087 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(Sk2DPathEffect)
88 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLine2DPathEffect)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000089 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect)
sugoi@google.come3b4c502013-04-05 13:47:09 +000090 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPerlinNoiseShader)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000091 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode)
robertphillips@google.com941ee932012-06-05 12:55:05 +000092 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkStippleMaskFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000093 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect)
bsalomon@google.com82aa7482012-08-13 14:22:17 +000094 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter)
senorblanco@chromium.orgb4ca9df2012-09-19 22:50:21 +000095 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixConvolutionImageFilter)
djsollen@google.coma2ca41e2012-03-23 19:00:34 +000096
97 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOffsetImageFilter)
98 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter)
99 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter)
100 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter)
101 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter)
djsollen@google.com5370cd92012-03-28 20:47:01 +0000102 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef)
103
djsollen@google.coma2ca41e2012-03-23 19:00:34 +0000104 SkBlurMaskFilter::InitializeFlattenables();
105 SkColorFilter::InitializeFlattenables();
106 SkGradientShader::InitializeFlattenables();
scroggo@google.com5a7c6be2012-10-04 21:46:08 +0000107 SkImages::InitializeFlattenables();
djsollen@google.com08337772012-06-26 14:33:13 +0000108 SkLightingImageFilter::InitializeFlattenables();
djsollen@google.coma2ca41e2012-03-23 19:00:34 +0000109 SkTableColorFilter::InitializeFlattenables();
110 SkXfermode::InitializeFlattenables();
caryclark@google.comd26147a2011-12-15 14:16:43 +0000111}