OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkTypes.h" | 8 #include "SkTypes.h" |
9 | 9 |
10 #include "SkBitmapProcShader.h" | 10 #include "SkBitmapProcShader.h" |
11 #include "SkMallocPixelRef.h" | 11 #include "SkMallocPixelRef.h" |
12 #include "SkPathEffect.h" | 12 #include "SkPathEffect.h" |
13 #include "SkPixelRef.h" | 13 #include "SkPixelRef.h" |
14 #include "SkXfermode.h" | 14 #include "SkXfermode.h" |
15 | 15 |
16 #include "Sk1DPathEffect.h" | 16 #include "Sk1DPathEffect.h" |
17 #include "Sk2DPathEffect.h" | 17 #include "Sk2DPathEffect.h" |
| 18 #include "SkAnnotation.h" |
18 #include "SkAvoidXfermode.h" | 19 #include "SkAvoidXfermode.h" |
19 #include "SkBicubicImageFilter.h" | 20 #include "SkBicubicImageFilter.h" |
20 #include "SkBitmapSource.h" | 21 #include "SkBitmapSource.h" |
21 #include "SkBlendImageFilter.h" | 22 #include "SkBlendImageFilter.h" |
22 #include "SkBlurDrawLooper.h" | 23 #include "SkBlurDrawLooper.h" |
23 #include "SkBlurImageFilter.h" | 24 #include "SkBlurImageFilter.h" |
24 #include "SkBlurMaskFilter.h" | 25 #include "SkBlurMaskFilter.h" |
25 #include "SkColorFilter.h" | 26 #include "SkColorFilter.h" |
26 #include "SkColorFilterImageFilter.h" | 27 #include "SkColorFilterImageFilter.h" |
27 #include "SkColorMatrixFilter.h" | 28 #include "SkColorMatrixFilter.h" |
28 #include "SkColorShader.h" | 29 #include "SkColorShader.h" |
29 #include "SkColorTable.h" | 30 #include "SkColorTable.h" |
30 #include "SkComposeShader.h" | 31 #include "SkComposeShader.h" |
31 #include "SkCornerPathEffect.h" | 32 #include "SkCornerPathEffect.h" |
32 #include "SkDashPathEffect.h" | 33 #include "SkDashPathEffect.h" |
| 34 #include "SkData.h" |
| 35 #include "SkDataSet.h" |
33 #include "SkDiscretePathEffect.h" | 36 #include "SkDiscretePathEffect.h" |
34 #include "SkDisplacementMapEffect.h" | 37 #include "SkDisplacementMapEffect.h" |
35 #include "SkEmptyShader.h" | 38 #include "SkEmptyShader.h" |
36 #include "SkEmbossMaskFilter.h" | 39 #include "SkEmbossMaskFilter.h" |
37 #include "SkFlattenable.h" | 40 #include "SkFlattenable.h" |
38 #include "SkGradientShader.h" | 41 #include "SkGradientShader.h" |
39 #include "SkImages.h" | 42 #include "SkImages.h" |
40 #include "SkLayerDrawLooper.h" | 43 #include "SkLayerDrawLooper.h" |
41 #include "SkLayerRasterizer.h" | 44 #include "SkLayerRasterizer.h" |
42 #include "SkLightingImageFilter.h" | 45 #include "SkLightingImageFilter.h" |
43 #include "SkMagnifierImageFilter.h" | 46 #include "SkMagnifierImageFilter.h" |
44 #include "SkMatrixConvolutionImageFilter.h" | 47 #include "SkMatrixConvolutionImageFilter.h" |
45 #include "SkMergeImageFilter.h" | 48 #include "SkMergeImageFilter.h" |
46 #include "SkMorphologyImageFilter.h" | 49 #include "SkMorphologyImageFilter.h" |
47 #include "SkOffsetImageFilter.h" | 50 #include "SkOffsetImageFilter.h" |
48 #include "SkPixelXorXfermode.h" | 51 #include "SkPixelXorXfermode.h" |
49 #include "SkStippleMaskFilter.h" | 52 #include "SkStippleMaskFilter.h" |
50 #include "SkTableColorFilter.h" | 53 #include "SkTableColorFilter.h" |
51 #include "SkTestImageFilters.h" | 54 #include "SkTestImageFilters.h" |
52 | 55 |
53 void SkFlattenable::InitializeFlattenables() { | 56 void SkFlattenable::InitializeFlattenables() { |
54 | 57 |
| 58 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAnnotation) |
55 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode) | 59 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode) |
56 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBicubicImageFilter) | 60 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBicubicImageFilter) |
57 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader) | 61 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader) |
58 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSource) | 62 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSource) |
59 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlendImageFilter) | 63 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlendImageFilter) |
60 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper) | 64 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper) |
61 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter) | 65 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter) |
62 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter) | 66 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter) |
63 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader) | 67 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader) |
64 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorTable) | 68 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorTable) |
65 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect) | 69 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect) |
66 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader) | 70 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader) |
67 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect) | 71 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect) |
68 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDashPathEffect) | 72 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDashPathEffect) |
| 73 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkData) |
| 74 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDataSet) |
69 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDilateImageFilter) | 75 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDilateImageFilter) |
70 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDiscretePathEffect) | 76 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDiscretePathEffect) |
71 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDisplacementMapEffect) | 77 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDisplacementMapEffect) |
72 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmbossMaskFilter) | 78 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmbossMaskFilter) |
73 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmptyShader) | 79 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmptyShader) |
74 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkErodeImageFilter) | 80 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkErodeImageFilter) |
75 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper) | 81 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper) |
76 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer) | 82 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer) |
77 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect) | 83 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect) |
78 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(Sk2DPathEffect) | 84 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(Sk2DPathEffect) |
(...skipping 13 matching lines...) Expand all Loading... |
92 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef) | 98 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef) |
93 | 99 |
94 SkBlurMaskFilter::InitializeFlattenables(); | 100 SkBlurMaskFilter::InitializeFlattenables(); |
95 SkColorFilter::InitializeFlattenables(); | 101 SkColorFilter::InitializeFlattenables(); |
96 SkGradientShader::InitializeFlattenables(); | 102 SkGradientShader::InitializeFlattenables(); |
97 SkImages::InitializeFlattenables(); | 103 SkImages::InitializeFlattenables(); |
98 SkLightingImageFilter::InitializeFlattenables(); | 104 SkLightingImageFilter::InitializeFlattenables(); |
99 SkTableColorFilter::InitializeFlattenables(); | 105 SkTableColorFilter::InitializeFlattenables(); |
100 SkXfermode::InitializeFlattenables(); | 106 SkXfermode::InitializeFlattenables(); |
101 } | 107 } |
OLD | NEW |