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