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 28 matching lines...) Expand all Loading... |
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 "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 "SkMorphologyImageFilter.h" | 50 #include "SkMorphologyImageFilter.h" |
50 #include "SkOffsetImageFilter.h" | 51 #include "SkOffsetImageFilter.h" |
51 #include "SkOnce.h" | 52 #include "SkOnce.h" |
52 #include "SkPerlinNoiseShader.h" | 53 #include "SkPerlinNoiseShader.h" |
53 #include "SkPictureImageFilter.h" | 54 #include "SkPictureImageFilter.h" |
54 #include "SkPictureShader.h" | 55 #include "SkPictureShader.h" |
55 #include "SkPixelXorXfermode.h" | 56 #include "SkPixelXorXfermode.h" |
56 #include "SkRectShaderImageFilter.h" | 57 #include "SkRectShaderImageFilter.h" |
57 #include "SkTableColorFilter.h" | 58 #include "SkTableColorFilter.h" |
58 #include "SkTestImageFilters.h" | 59 #include "SkTestImageFilters.h" |
(...skipping 23 matching lines...) Expand all Loading... |
82 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmbossMaskFilter) | 83 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmbossMaskFilter) |
83 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmptyShader) | 84 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmptyShader) |
84 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkErodeImageFilter) | 85 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkErodeImageFilter) |
85 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper) | 86 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper) |
86 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer) | 87 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer) |
87 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLerpXfermode) | 88 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLerpXfermode) |
88 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLocalMatrixShader) | 89 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLocalMatrixShader) |
89 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLumaColorFilter) | 90 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLumaColorFilter) |
90 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect) | 91 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect) |
91 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLine2DPathEffect) | 92 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLine2DPathEffect) |
| 93 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkModeColorFilter) |
92 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect) | 94 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect) |
93 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPerlinNoiseShader) | 95 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPerlinNoiseShader) |
94 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPictureImageFilter) | 96 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPictureImageFilter) |
95 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPictureShader) | 97 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPictureShader) |
96 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode) | 98 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode) |
97 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkRectShaderImageFilter) | 99 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkRectShaderImageFilter) |
98 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect) | 100 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect) |
99 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTileImageFilter) | 101 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTileImageFilter) |
100 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixImageFilter) | 102 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixImageFilter) |
101 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter) | 103 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter) |
(...skipping 13 matching lines...) Expand all Loading... |
115 SkLightingImageFilter::InitializeFlattenables(); | 117 SkLightingImageFilter::InitializeFlattenables(); |
116 SkTableColorFilter::InitializeFlattenables(); | 118 SkTableColorFilter::InitializeFlattenables(); |
117 SkXfermode::InitializeFlattenables(); | 119 SkXfermode::InitializeFlattenables(); |
118 } | 120 } |
119 }; | 121 }; |
120 | 122 |
121 SK_DECLARE_STATIC_ONCE(once); | 123 SK_DECLARE_STATIC_ONCE(once); |
122 void SkFlattenable::InitializeFlattenablesIfNeeded() { | 124 void SkFlattenable::InitializeFlattenablesIfNeeded() { |
123 SkOnce(&once, SkPrivateEffectInitializer::Init); | 125 SkOnce(&once, SkPrivateEffectInitializer::Init); |
124 } | 126 } |
OLD | NEW |