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" | |
21 #include "SkBitmapSource.h" | 20 #include "SkBitmapSource.h" |
22 #include "SkBlurDrawLooper.h" | 21 #include "SkBlurDrawLooper.h" |
23 #include "SkBlurImageFilter.h" | 22 #include "SkBlurImageFilter.h" |
24 #include "SkBlurMaskFilter.h" | 23 #include "SkBlurMaskFilter.h" |
25 #include "SkColorCubeFilter.h" | 24 #include "SkColorCubeFilter.h" |
26 #include "SkColorFilter.h" | 25 #include "SkColorFilter.h" |
27 #include "SkColorFilterImageFilter.h" | 26 #include "SkColorFilterImageFilter.h" |
28 #include "SkColorMatrixFilter.h" | 27 #include "SkColorMatrixFilter.h" |
29 #include "SkColorShader.h" | 28 #include "SkColorShader.h" |
30 #include "SkComposeImageFilter.h" | 29 #include "SkComposeImageFilter.h" |
(...skipping 27 matching lines...) Expand all Loading... |
58 #include "SkTableColorFilter.h" | 57 #include "SkTableColorFilter.h" |
59 #include "SkTestImageFilters.h" | 58 #include "SkTestImageFilters.h" |
60 #include "SkTileImageFilter.h" | 59 #include "SkTileImageFilter.h" |
61 #include "SkMatrixImageFilter.h" | 60 #include "SkMatrixImageFilter.h" |
62 #include "SkXfermodeImageFilter.h" | 61 #include "SkXfermodeImageFilter.h" |
63 | 62 |
64 class SkPrivateEffectInitializer { | 63 class SkPrivateEffectInitializer { |
65 public: | 64 public: |
66 static void Init() { | 65 static void Init() { |
67 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkArcToPathEffect) | 66 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkArcToPathEffect) |
68 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode) | |
69 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader) | 67 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader) |
70 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSource) | 68 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSource) |
71 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper) | 69 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper) |
72 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter) | 70 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter) |
73 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorCubeFilter) | 71 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorCubeFilter) |
74 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter) | 72 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter) |
75 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader) | 73 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader) |
76 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect) | 74 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect) |
77 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader) | 75 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader) |
78 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect) | 76 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect) |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 SkLightingImageFilter::InitializeFlattenables(); | 115 SkLightingImageFilter::InitializeFlattenables(); |
118 SkTableColorFilter::InitializeFlattenables(); | 116 SkTableColorFilter::InitializeFlattenables(); |
119 SkXfermode::InitializeFlattenables(); | 117 SkXfermode::InitializeFlattenables(); |
120 } | 118 } |
121 }; | 119 }; |
122 | 120 |
123 SK_DECLARE_STATIC_ONCE(once); | 121 SK_DECLARE_STATIC_ONCE(once); |
124 void SkFlattenable::InitializeFlattenablesIfNeeded() { | 122 void SkFlattenable::InitializeFlattenablesIfNeeded() { |
125 SkOnce(&once, SkPrivateEffectInitializer::Init); | 123 SkOnce(&once, SkPrivateEffectInitializer::Init); |
126 } | 124 } |
OLD | NEW |