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" |
11 #include "SkMallocPixelRef.h" | 11 #include "SkMallocPixelRef.h" |
12 #include "SkPathEffect.h" | 12 #include "SkPathEffect.h" |
13 #include "SkPixelRef.h" | 13 #include "SkPixelRef.h" |
14 #include "SkXfermode.h" | 14 #include "SkXfermode.h" |
15 | 15 |
16 #include "Sk1DPathEffect.h" | 16 #include "Sk1DPathEffect.h" |
17 #include "Sk2DPathEffect.h" | 17 #include "Sk2DPathEffect.h" |
18 #include "SkArithmeticMode.h" | 18 #include "SkArithmeticMode.h" |
19 #include "SkArcToPathEffect.h" | 19 #include "SkArcToPathEffect.h" |
| 20 #include "SkAvoidXfermode.h" |
20 #include "SkBitmapSource.h" | 21 #include "SkBitmapSource.h" |
21 #include "SkBlurDrawLooper.h" | 22 #include "SkBlurDrawLooper.h" |
22 #include "SkBlurImageFilter.h" | 23 #include "SkBlurImageFilter.h" |
23 #include "SkBlurMaskFilter.h" | 24 #include "SkBlurMaskFilter.h" |
24 #include "SkColorCubeFilter.h" | 25 #include "SkColorCubeFilter.h" |
25 #include "SkColorFilter.h" | 26 #include "SkColorFilter.h" |
26 #include "SkColorFilterImageFilter.h" | 27 #include "SkColorFilterImageFilter.h" |
27 #include "SkColorMatrixFilter.h" | 28 #include "SkColorMatrixFilter.h" |
28 #include "SkColorShader.h" | 29 #include "SkColorShader.h" |
29 #include "SkComposeImageFilter.h" | 30 #include "SkComposeImageFilter.h" |
(...skipping 27 matching lines...) Expand all Loading... |
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 "SkMatrixImageFilter.h" | 61 #include "SkMatrixImageFilter.h" |
61 #include "SkXfermodeImageFilter.h" | 62 #include "SkXfermodeImageFilter.h" |
62 | 63 |
63 class SkPrivateEffectInitializer { | 64 class SkPrivateEffectInitializer { |
64 public: | 65 public: |
65 static void Init() { | 66 static void Init() { |
66 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkArcToPathEffect) | 67 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkArcToPathEffect) |
| 68 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode) |
67 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader) | 69 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader) |
68 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSource) | 70 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSource) |
69 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper) | 71 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper) |
70 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter) | 72 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter) |
71 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorCubeFilter) | 73 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorCubeFilter) |
72 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter) | 74 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter) |
73 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader) | 75 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader) |
74 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect) | 76 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect) |
75 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader) | 77 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader) |
76 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect) | 78 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect) |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |