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 19 matching lines...) Expand all Loading... | |
30 #include "SkComposeShader.h" | 30 #include "SkComposeShader.h" |
31 #include "SkCornerPathEffect.h" | 31 #include "SkCornerPathEffect.h" |
32 #include "SkDashPathEffect.h" | 32 #include "SkDashPathEffect.h" |
33 #include "SkDiscretePathEffect.h" | 33 #include "SkDiscretePathEffect.h" |
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 "SkImages.h" | |
41 #include "SkLayerDrawLooper.h" | 40 #include "SkLayerDrawLooper.h" |
42 #include "SkLayerRasterizer.h" | 41 #include "SkLayerRasterizer.h" |
43 #include "SkLerpXfermode.h" | 42 #include "SkLerpXfermode.h" |
44 #include "SkLightingImageFilter.h" | 43 #include "SkLightingImageFilter.h" |
45 #include "SkLumaColorFilter.h" | 44 #include "SkLumaColorFilter.h" |
46 #include "SkMagnifierImageFilter.h" | 45 #include "SkMagnifierImageFilter.h" |
47 #include "SkMatrixConvolutionImageFilter.h" | 46 #include "SkMatrixConvolutionImageFilter.h" |
48 #include "SkMergeImageFilter.h" | 47 #include "SkMergeImageFilter.h" |
49 #include "SkMorphologyImageFilter.h" | 48 #include "SkMorphologyImageFilter.h" |
50 #include "SkOffsetImageFilter.h" | 49 #include "SkOffsetImageFilter.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
100 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter) | 99 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter) |
101 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) | 100 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) |
102 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) | 101 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) |
103 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) | 102 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) |
104 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef) | 103 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef) |
105 | 104 |
106 SkArithmeticMode::InitializeFlattenables(); | 105 SkArithmeticMode::InitializeFlattenables(); |
107 SkBlurMaskFilter::InitializeFlattenables(); | 106 SkBlurMaskFilter::InitializeFlattenables(); |
108 SkColorFilter::InitializeFlattenables(); | 107 SkColorFilter::InitializeFlattenables(); |
109 SkGradientShader::InitializeFlattenables(); | 108 SkGradientShader::InitializeFlattenables(); |
110 SkImages::InitializeFlattenables(); | |
scroggo
2014/01/07 16:01:05
Please remove similar code in src/ports/SkImageDec
| |
111 SkLightingImageFilter::InitializeFlattenables(); | 109 SkLightingImageFilter::InitializeFlattenables(); |
112 SkTableColorFilter::InitializeFlattenables(); | 110 SkTableColorFilter::InitializeFlattenables(); |
113 SkXfermode::InitializeFlattenables(); | 111 SkXfermode::InitializeFlattenables(); |
114 } | 112 } |
115 | 113 |
116 void SkFlattenable::InitializeFlattenablesIfNeeded() { | 114 void SkFlattenable::InitializeFlattenablesIfNeeded() { |
117 int dummy; | 115 int dummy; |
118 SK_DECLARE_STATIC_ONCE(once); | 116 SK_DECLARE_STATIC_ONCE(once); |
119 SkOnce(&once, InitializeFlattenables, &dummy); | 117 SkOnce(&once, InitializeFlattenables, &dummy); |
120 } | 118 } |
OLD | NEW |