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 22 matching lines...) Expand all Loading... |
33 #include "SkCornerPathEffect.h" | 33 #include "SkCornerPathEffect.h" |
34 #include "SkDashPathEffect.h" | 34 #include "SkDashPathEffect.h" |
35 #include "SkData.h" | 35 #include "SkData.h" |
36 #include "SkDataSet.h" | 36 #include "SkDataSet.h" |
37 #include "SkDiscretePathEffect.h" | 37 #include "SkDiscretePathEffect.h" |
38 #include "SkDisplacementMapEffect.h" | 38 #include "SkDisplacementMapEffect.h" |
39 #include "SkDropShadowImageFilter.h" | 39 #include "SkDropShadowImageFilter.h" |
40 #include "SkEmptyShader.h" | 40 #include "SkEmptyShader.h" |
41 #include "SkEmbossMaskFilter.h" | 41 #include "SkEmbossMaskFilter.h" |
42 #include "SkFlattenable.h" | 42 #include "SkFlattenable.h" |
| 43 #include "SkFlattenableUtils.h" |
43 #include "SkGradientShader.h" | 44 #include "SkGradientShader.h" |
44 #include "SkImages.h" | 45 #include "SkImages.h" |
45 #include "SkLayerDrawLooper.h" | 46 #include "SkLayerDrawLooper.h" |
46 #include "SkLayerRasterizer.h" | 47 #include "SkLayerRasterizer.h" |
47 #include "SkLerpXfermode.h" | 48 #include "SkLerpXfermode.h" |
48 #include "SkLightingImageFilter.h" | 49 #include "SkLightingImageFilter.h" |
49 #include "SkLumaXfermode.h" | 50 #include "SkLumaXfermode.h" |
50 #include "SkMagnifierImageFilter.h" | 51 #include "SkMagnifierImageFilter.h" |
51 #include "SkMatrixConvolutionImageFilter.h" | 52 #include "SkMatrixConvolutionImageFilter.h" |
52 #include "SkMergeImageFilter.h" | 53 #include "SkMergeImageFilter.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 SkArithmeticMode::InitializeFlattenables(); | 112 SkArithmeticMode::InitializeFlattenables(); |
112 SkBlurMaskFilter::InitializeFlattenables(); | 113 SkBlurMaskFilter::InitializeFlattenables(); |
113 SkColorFilter::InitializeFlattenables(); | 114 SkColorFilter::InitializeFlattenables(); |
114 SkGradientShader::InitializeFlattenables(); | 115 SkGradientShader::InitializeFlattenables(); |
115 SkImages::InitializeFlattenables(); | 116 SkImages::InitializeFlattenables(); |
116 SkLightingImageFilter::InitializeFlattenables(); | 117 SkLightingImageFilter::InitializeFlattenables(); |
117 SkLumaMaskXfermode::InitializeFlattenables(); | 118 SkLumaMaskXfermode::InitializeFlattenables(); |
118 SkTableColorFilter::InitializeFlattenables(); | 119 SkTableColorFilter::InitializeFlattenables(); |
119 SkXfermode::InitializeFlattenables(); | 120 SkXfermode::InitializeFlattenables(); |
120 } | 121 } |
| 122 |
| 123 SkFlattenable::Factory SkFlattenable::TypeToFactory(SkFlattenable::Type type) { |
| 124 return SkFlattenableUtils::TypeToFactory(type); |
| 125 } |
| 126 |
| 127 bool SkFlattenable::TypeIsA(SkFlattenable::Type typeA, SkFlattenable::Type typeB
) { |
| 128 return SkFlattenableUtils::TypeIsA(typeA, typeB); |
| 129 } |
| 130 |
OLD | NEW |