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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "SkLightingShader.h" | 43 #include "SkLightingShader.h" |
44 #include "SkLocalMatrixShader.h" | 44 #include "SkLocalMatrixShader.h" |
45 #include "SkLumaColorFilter.h" | 45 #include "SkLumaColorFilter.h" |
46 #include "SkMagnifierImageFilter.h" | 46 #include "SkMagnifierImageFilter.h" |
47 #include "SkMatrixConvolutionImageFilter.h" | 47 #include "SkMatrixConvolutionImageFilter.h" |
48 #include "SkMergeImageFilter.h" | 48 #include "SkMergeImageFilter.h" |
49 #include "SkModeColorFilter.h" | 49 #include "SkModeColorFilter.h" |
50 #include "SkMorphologyImageFilter.h" | 50 #include "SkMorphologyImageFilter.h" |
51 #include "SkOffsetImageFilter.h" | 51 #include "SkOffsetImageFilter.h" |
52 #include "SkOnce.h" | 52 #include "SkOnce.h" |
| 53 #include "SkPaintImageFilter.h" |
53 #include "SkPerlinNoiseShader.h" | 54 #include "SkPerlinNoiseShader.h" |
54 #include "SkPictureImageFilter.h" | 55 #include "SkPictureImageFilter.h" |
55 #include "SkPictureShader.h" | 56 #include "SkPictureShader.h" |
56 #include "SkPixelXorXfermode.h" | 57 #include "SkPixelXorXfermode.h" |
57 #include "SkRectShaderImageFilter.h" | 58 #include "SkRectShaderImageFilter.h" |
58 #include "SkTableColorFilter.h" | 59 #include "SkTableColorFilter.h" |
59 #include "SkTestImageFilters.h" | 60 #include "SkTestImageFilters.h" |
60 #include "SkTileImageFilter.h" | 61 #include "SkTileImageFilter.h" |
61 #include "SkMatrixImageFilter.h" | 62 #include "SkMatrixImageFilter.h" |
62 #include "SkXfermodeImageFilter.h" | 63 #include "SkXfermodeImageFilter.h" |
(...skipping 23 matching lines...) Expand all Loading... |
86 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkImageShader) | 87 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkImageShader) |
87 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkImageSource) | 88 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkImageSource) |
88 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper) | 89 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper) |
89 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer) | 90 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer) |
90 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLerpXfermode) | 91 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLerpXfermode) |
91 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLocalMatrixShader) | 92 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLocalMatrixShader) |
92 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLumaColorFilter) | 93 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLumaColorFilter) |
93 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect) | 94 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect) |
94 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLine2DPathEffect) | 95 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLine2DPathEffect) |
95 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkModeColorFilter) | 96 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkModeColorFilter) |
| 97 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPaintImageFilter) |
96 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect) | 98 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect) |
97 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPerlinNoiseShader) | 99 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPerlinNoiseShader) |
98 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPictureImageFilter) | 100 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPictureImageFilter) |
99 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPictureShader) | 101 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPictureShader) |
100 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode) | 102 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode) |
101 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkRectShaderImageFilter) | 103 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkRectShaderImageFilter) |
102 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect) | 104 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect) |
103 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTileImageFilter) | 105 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTileImageFilter) |
104 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixImageFilter) | 106 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixImageFilter) |
105 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter) | 107 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter) |
(...skipping 15 matching lines...) Expand all Loading... |
121 SkLightingShader::InitializeFlattenables(); | 123 SkLightingShader::InitializeFlattenables(); |
122 SkTableColorFilter::InitializeFlattenables(); | 124 SkTableColorFilter::InitializeFlattenables(); |
123 SkXfermode::InitializeFlattenables(); | 125 SkXfermode::InitializeFlattenables(); |
124 } | 126 } |
125 }; | 127 }; |
126 | 128 |
127 SK_DECLARE_STATIC_ONCE(once); | 129 SK_DECLARE_STATIC_ONCE(once); |
128 void SkFlattenable::InitializeFlattenablesIfNeeded() { | 130 void SkFlattenable::InitializeFlattenablesIfNeeded() { |
129 SkOnce(&once, SkPrivateEffectInitializer::Init); | 131 SkOnce(&once, SkPrivateEffectInitializer::Init); |
130 } | 132 } |
OLD | NEW |