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