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 23 matching lines...) Expand all Loading... |
34 #include "SkDisplacementMapEffect.h" | 34 #include "SkDisplacementMapEffect.h" |
35 #include "SkDropShadowImageFilter.h" | 35 #include "SkDropShadowImageFilter.h" |
36 #include "SkEmptyShader.h" | 36 #include "SkEmptyShader.h" |
37 #include "SkEmbossMaskFilter.h" | 37 #include "SkEmbossMaskFilter.h" |
38 #include "SkFlattenable.h" | 38 #include "SkFlattenable.h" |
39 #include "SkGradientShader.h" | 39 #include "SkGradientShader.h" |
40 #include "SkLayerDrawLooper.h" | 40 #include "SkLayerDrawLooper.h" |
41 #include "SkLayerRasterizer.h" | 41 #include "SkLayerRasterizer.h" |
42 #include "SkLerpXfermode.h" | 42 #include "SkLerpXfermode.h" |
43 #include "SkLightingImageFilter.h" | 43 #include "SkLightingImageFilter.h" |
| 44 #include "../effects/SkLightingShader.h" |
44 #include "SkLocalMatrixShader.h" | 45 #include "SkLocalMatrixShader.h" |
45 #include "SkLumaColorFilter.h" | 46 #include "SkLumaColorFilter.h" |
46 #include "SkMagnifierImageFilter.h" | 47 #include "SkMagnifierImageFilter.h" |
47 #include "SkMatrixConvolutionImageFilter.h" | 48 #include "SkMatrixConvolutionImageFilter.h" |
48 #include "SkMergeImageFilter.h" | 49 #include "SkMergeImageFilter.h" |
49 #include "SkModeColorFilter.h" | 50 #include "SkModeColorFilter.h" |
50 #include "SkMorphologyImageFilter.h" | 51 #include "SkMorphologyImageFilter.h" |
51 #include "SkOffsetImageFilter.h" | 52 #include "SkOffsetImageFilter.h" |
52 #include "SkOnce.h" | 53 #include "SkOnce.h" |
53 #include "SkPerlinNoiseShader.h" | 54 #include "SkPerlinNoiseShader.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter) | 126 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter) |
126 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) | 127 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) |
127 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) | 128 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) |
128 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) | 129 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) |
129 | 130 |
130 SkArithmeticMode::InitializeFlattenables(); | 131 SkArithmeticMode::InitializeFlattenables(); |
131 SkBlurMaskFilter::InitializeFlattenables(); | 132 SkBlurMaskFilter::InitializeFlattenables(); |
132 SkColorFilter::InitializeFlattenables(); | 133 SkColorFilter::InitializeFlattenables(); |
133 SkGradientShader::InitializeFlattenables(); | 134 SkGradientShader::InitializeFlattenables(); |
134 SkLightingImageFilter::InitializeFlattenables(); | 135 SkLightingImageFilter::InitializeFlattenables(); |
| 136 SkLightingShader::InitializeFlattenables(); |
135 SkTableColorFilter::InitializeFlattenables(); | 137 SkTableColorFilter::InitializeFlattenables(); |
136 SkXfermode::InitializeFlattenables(); | 138 SkXfermode::InitializeFlattenables(); |
137 } | 139 } |
138 }; | 140 }; |
139 | 141 |
140 SK_DECLARE_STATIC_ONCE(once); | 142 SK_DECLARE_STATIC_ONCE(once); |
141 void SkFlattenable::InitializeFlattenablesIfNeeded() { | 143 void SkFlattenable::InitializeFlattenablesIfNeeded() { |
142 SkOnce(&once, SkPrivateEffectInitializer::Init); | 144 SkOnce(&once, SkPrivateEffectInitializer::Init); |
143 } | 145 } |
OLD | NEW |