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 "SkBitmapProcShader.h" | 8 #include "SkBitmapProcShader.h" |
9 #include "SkPathEffect.h" | 9 #include "SkPathEffect.h" |
10 #include "SkXfermode.h" | 10 #include "SkXfermode.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "SkDisplacementMapEffect.h" | 30 #include "SkDisplacementMapEffect.h" |
31 #include "SkDropShadowImageFilter.h" | 31 #include "SkDropShadowImageFilter.h" |
32 #include "SkEmptyShader.h" | 32 #include "SkEmptyShader.h" |
33 #include "SkEmbossMaskFilter.h" | 33 #include "SkEmbossMaskFilter.h" |
34 #include "SkFlattenable.h" | 34 #include "SkFlattenable.h" |
35 #include "SkGradientShader.h" | 35 #include "SkGradientShader.h" |
36 #include "SkLayerDrawLooper.h" | 36 #include "SkLayerDrawLooper.h" |
37 #include "SkLayerRasterizer.h" | 37 #include "SkLayerRasterizer.h" |
38 #include "SkLerpXfermode.h" | 38 #include "SkLerpXfermode.h" |
39 #include "SkLightingImageFilter.h" | 39 #include "SkLightingImageFilter.h" |
| 40 #include "../effects/SkLightingShader.h" |
40 #include "SkLocalMatrixShader.h" | 41 #include "SkLocalMatrixShader.h" |
41 #include "SkLumaColorFilter.h" | 42 #include "SkLumaColorFilter.h" |
42 #include "SkMagnifierImageFilter.h" | 43 #include "SkMagnifierImageFilter.h" |
43 #include "SkMatrixConvolutionImageFilter.h" | 44 #include "SkMatrixConvolutionImageFilter.h" |
44 #include "SkMergeImageFilter.h" | 45 #include "SkMergeImageFilter.h" |
45 #include "SkModeColorFilter.h" | 46 #include "SkModeColorFilter.h" |
46 #include "SkMorphologyImageFilter.h" | 47 #include "SkMorphologyImageFilter.h" |
47 #include "SkOffsetImageFilter.h" | 48 #include "SkOffsetImageFilter.h" |
48 #include "SkOnce.h" | 49 #include "SkOnce.h" |
49 #include "SkPerlinNoiseShader.h" | 50 #include "SkPerlinNoiseShader.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter) | 105 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter) |
105 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) | 106 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) |
106 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) | 107 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) |
107 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) | 108 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) |
108 | 109 |
109 SkArithmeticMode::InitializeFlattenables(); | 110 SkArithmeticMode::InitializeFlattenables(); |
110 SkBlurMaskFilter::InitializeFlattenables(); | 111 SkBlurMaskFilter::InitializeFlattenables(); |
111 SkColorFilter::InitializeFlattenables(); | 112 SkColorFilter::InitializeFlattenables(); |
112 SkGradientShader::InitializeFlattenables(); | 113 SkGradientShader::InitializeFlattenables(); |
113 SkLightingImageFilter::InitializeFlattenables(); | 114 SkLightingImageFilter::InitializeFlattenables(); |
| 115 SkLightingShader::InitializeFlattenables(); |
114 SkTableColorFilter::InitializeFlattenables(); | 116 SkTableColorFilter::InitializeFlattenables(); |
115 SkXfermode::InitializeFlattenables(); | 117 SkXfermode::InitializeFlattenables(); |
116 } | 118 } |
117 }; | 119 }; |
118 | 120 |
119 SK_DECLARE_STATIC_ONCE(once); | 121 SK_DECLARE_STATIC_ONCE(once); |
120 void SkFlattenable::InitializeFlattenablesIfNeeded() { | 122 void SkFlattenable::InitializeFlattenablesIfNeeded() { |
121 SkOnce(&once, SkPrivateEffectInitializer::Init); | 123 SkOnce(&once, SkPrivateEffectInitializer::Init); |
122 } | 124 } |
OLD | NEW |