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" |
11 | 11 |
12 #include "Sk1DPathEffect.h" | 12 #include "Sk1DPathEffect.h" |
13 #include "Sk2DPathEffect.h" | 13 #include "Sk2DPathEffect.h" |
14 #include "SkAlphaThresholdFilter.h" | 14 #include "SkAlphaThresholdFilter.h" |
15 #include "SkArithmeticMode.h" | 15 #include "SkArithmeticMode.h" |
16 #include "SkArcToPathEffect.h" | 16 #include "SkArcToPathEffect.h" |
17 #include "SkBitmapSourceDeserializer.h" | 17 #include "SkBitmapSourceDeserializer.h" |
18 #include "SkBlurDrawLooper.h" | 18 #include "SkBlurDrawLooper.h" |
19 #include "SkBlurImageFilter.h" | 19 #include "SkBlurImageFilter.h" |
20 #include "SkBlurMaskFilter.h" | 20 #include "SkBlurMaskFilter.h" |
21 #include "SkColorCubeFilter.h" | 21 #include "SkColorCubeFilter.h" |
22 #include "SkColorFilter.h" | 22 #include "SkColorFilter.h" |
23 #include "SkColorFilterImageFilter.h" | 23 #include "SkColorFilterImageFilter.h" |
| 24 #include "SkColorFilterShader.h" |
24 #include "SkColorMatrixFilter.h" | 25 #include "SkColorMatrixFilter.h" |
25 #include "SkColorShader.h" | 26 #include "SkColorShader.h" |
26 #include "SkComposeImageFilter.h" | 27 #include "SkComposeImageFilter.h" |
27 #include "SkComposeShader.h" | 28 #include "SkComposeShader.h" |
28 #include "SkCornerPathEffect.h" | 29 #include "SkCornerPathEffect.h" |
29 #include "SkDashPathEffect.h" | 30 #include "SkDashPathEffect.h" |
30 #include "SkDiscretePathEffect.h" | 31 #include "SkDiscretePathEffect.h" |
31 #include "SkDisplacementMapEffect.h" | 32 #include "SkDisplacementMapEffect.h" |
32 #include "SkDropShadowImageFilter.h" | 33 #include "SkDropShadowImageFilter.h" |
33 #include "SkEmptyShader.h" | 34 #include "SkEmptyShader.h" |
(...skipping 30 matching lines...) Expand all Loading... |
64 class SkPrivateEffectInitializer { | 65 class SkPrivateEffectInitializer { |
65 public: | 66 public: |
66 static void Init() { | 67 static void Init() { |
67 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkArcToPathEffect) | 68 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkArcToPathEffect) |
68 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader) | 69 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader) |
69 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSourceDeserializer) | 70 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSourceDeserializer) |
70 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper) | 71 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper) |
71 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter) | 72 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter) |
72 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorCubeFilter) | 73 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorCubeFilter) |
73 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter) | 74 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter) |
| 75 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterShader) |
74 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader) | 76 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader) |
75 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect) | 77 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect) |
76 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader) | 78 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader) |
77 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect) | 79 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect) |
78 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDashPathEffect) | 80 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDashPathEffect) |
79 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDilateImageFilter) | 81 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDilateImageFilter) |
80 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDiscretePathEffect) | 82 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDiscretePathEffect) |
81 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDisplacementMapEffect) | 83 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDisplacementMapEffect) |
82 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDropShadowImageFilter) | 84 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDropShadowImageFilter) |
83 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmbossMaskFilter) | 85 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmbossMaskFilter) |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |