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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "SkLerpXfermode.h" | 43 #include "SkLerpXfermode.h" |
44 #include "SkLightingImageFilter.h" | 44 #include "SkLightingImageFilter.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 "SkMorphologyImageFilter.h" | 49 #include "SkMorphologyImageFilter.h" |
50 #include "SkOffsetImageFilter.h" | 50 #include "SkOffsetImageFilter.h" |
51 #include "SkOnce.h" | 51 #include "SkOnce.h" |
52 #include "SkPerlinNoiseShader.h" | 52 #include "SkPerlinNoiseShader.h" |
| 53 #include "SkPictureImageFilter.h" |
53 #include "SkPixelXorXfermode.h" | 54 #include "SkPixelXorXfermode.h" |
54 #include "SkRectShaderImageFilter.h" | 55 #include "SkRectShaderImageFilter.h" |
55 #include "SkResizeImageFilter.h" | 56 #include "SkResizeImageFilter.h" |
56 #include "SkStippleMaskFilter.h" | 57 #include "SkStippleMaskFilter.h" |
57 #include "SkTableColorFilter.h" | 58 #include "SkTableColorFilter.h" |
58 #include "SkTestImageFilters.h" | 59 #include "SkTestImageFilters.h" |
59 #include "SkTileImageFilter.h" | 60 #include "SkTileImageFilter.h" |
60 #include "SkXfermodeImageFilter.h" | 61 #include "SkXfermodeImageFilter.h" |
61 | 62 |
62 static void InitializeFlattenables(int*) { | 63 static void InitializeFlattenables(int*) { |
(...skipping 18 matching lines...) Expand all Loading... |
81 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkErodeImageFilter) | 82 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkErodeImageFilter) |
82 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper) | 83 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper) |
83 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer) | 84 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer) |
84 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLerpXfermode) | 85 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLerpXfermode) |
85 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLumaColorFilter) | 86 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLumaColorFilter) |
86 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect) | 87 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect) |
87 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(Sk2DPathEffect) | 88 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(Sk2DPathEffect) |
88 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLine2DPathEffect) | 89 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLine2DPathEffect) |
89 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect) | 90 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect) |
90 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPerlinNoiseShader) | 91 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPerlinNoiseShader) |
| 92 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPictureImageFilter) |
91 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode) | 93 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode) |
92 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkRectShaderImageFilter) | 94 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkRectShaderImageFilter) |
93 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkResizeImageFilter) | 95 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkResizeImageFilter) |
94 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkStippleMaskFilter) | 96 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkStippleMaskFilter) |
95 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect) | 97 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect) |
96 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTileImageFilter) | 98 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkTileImageFilter) |
97 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter) | 99 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter) |
98 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter) | 100 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter) |
99 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixConvolutionImageFilter) | 101 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixConvolutionImageFilter) |
100 | 102 |
(...skipping 12 matching lines...) Expand all Loading... |
113 SkLightingImageFilter::InitializeFlattenables(); | 115 SkLightingImageFilter::InitializeFlattenables(); |
114 SkTableColorFilter::InitializeFlattenables(); | 116 SkTableColorFilter::InitializeFlattenables(); |
115 SkXfermode::InitializeFlattenables(); | 117 SkXfermode::InitializeFlattenables(); |
116 } | 118 } |
117 | 119 |
118 void SkFlattenable::InitializeFlattenablesIfNeeded() { | 120 void SkFlattenable::InitializeFlattenablesIfNeeded() { |
119 int dummy; | 121 int dummy; |
120 SK_DECLARE_STATIC_ONCE(once); | 122 SK_DECLARE_STATIC_ONCE(once); |
121 SkOnce(&once, InitializeFlattenables, &dummy); | 123 SkOnce(&once, InitializeFlattenables, &dummy); |
122 } | 124 } |
OLD | NEW |