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" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #include "SkLerpXfermode.h" | 47 #include "SkLerpXfermode.h" |
48 #include "SkLightingImageFilter.h" | 48 #include "SkLightingImageFilter.h" |
49 #include "SkLumaXfermode.h" | 49 #include "SkLumaXfermode.h" |
50 #include "SkMagnifierImageFilter.h" | 50 #include "SkMagnifierImageFilter.h" |
51 #include "SkMatrixConvolutionImageFilter.h" | 51 #include "SkMatrixConvolutionImageFilter.h" |
52 #include "SkMergeImageFilter.h" | 52 #include "SkMergeImageFilter.h" |
53 #include "SkMorphologyImageFilter.h" | 53 #include "SkMorphologyImageFilter.h" |
54 #include "SkOffsetImageFilter.h" | 54 #include "SkOffsetImageFilter.h" |
55 #include "SkPerlinNoiseShader.h" | 55 #include "SkPerlinNoiseShader.h" |
56 #include "SkPixelXorXfermode.h" | 56 #include "SkPixelXorXfermode.h" |
| 57 #include "SkRectShaderImageFilter.h" |
57 #include "SkStippleMaskFilter.h" | 58 #include "SkStippleMaskFilter.h" |
58 #include "SkTableColorFilter.h" | 59 #include "SkTableColorFilter.h" |
59 #include "SkTestImageFilters.h" | 60 #include "SkTestImageFilters.h" |
60 #include "SkXfermodeImageFilter.h" | 61 #include "SkXfermodeImageFilter.h" |
61 | 62 |
62 void SkFlattenable::InitializeFlattenables() { | 63 void SkFlattenable::InitializeFlattenables() { |
63 | 64 |
64 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAnnotation) | 65 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAnnotation) |
65 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode) | 66 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode) |
66 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBicubicImageFilter) | 67 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBicubicImageFilter) |
(...skipping 20 matching lines...) Expand all Loading... |
87 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper) | 88 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper) |
88 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer) | 89 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer) |
89 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLerpXfermode) | 90 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLerpXfermode) |
90 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLumaMaskXfermode) | 91 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLumaMaskXfermode) |
91 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect) | 92 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect) |
92 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(Sk2DPathEffect) | 93 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(Sk2DPathEffect) |
93 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLine2DPathEffect) | 94 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLine2DPathEffect) |
94 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect) | 95 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect) |
95 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPerlinNoiseShader) | 96 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPerlinNoiseShader) |
96 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode) | 97 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode) |
| 98 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkRectShaderImageFilter) |
97 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkStippleMaskFilter) | 99 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkStippleMaskFilter) |
98 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect) | 100 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect) |
99 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter) | 101 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter) |
100 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter) | 102 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter) |
101 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixConvolutionImageFilter) | 103 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixConvolutionImageFilter) |
102 | 104 |
103 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOffsetImageFilter) | 105 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOffsetImageFilter) |
104 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter) | 106 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter) |
105 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) | 107 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) |
106 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) | 108 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) |
107 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) | 109 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) |
108 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef) | 110 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef) |
109 | 111 |
110 SkArithmeticMode::InitializeFlattenables(); | 112 SkArithmeticMode::InitializeFlattenables(); |
111 SkBlurMaskFilter::InitializeFlattenables(); | 113 SkBlurMaskFilter::InitializeFlattenables(); |
112 SkColorFilter::InitializeFlattenables(); | 114 SkColorFilter::InitializeFlattenables(); |
113 SkGradientShader::InitializeFlattenables(); | 115 SkGradientShader::InitializeFlattenables(); |
114 SkImages::InitializeFlattenables(); | 116 SkImages::InitializeFlattenables(); |
115 SkLightingImageFilter::InitializeFlattenables(); | 117 SkLightingImageFilter::InitializeFlattenables(); |
116 SkTableColorFilter::InitializeFlattenables(); | 118 SkTableColorFilter::InitializeFlattenables(); |
117 SkXfermode::InitializeFlattenables(); | 119 SkXfermode::InitializeFlattenables(); |
118 } | 120 } |
OLD | NEW |