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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixImageFilter) | 99 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixImageFilter) |
100 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter) | 100 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter) |
101 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter) | 101 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter) |
102 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixConvolutionImageFilter) | 102 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixConvolutionImageFilter) |
103 | 103 |
104 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOffsetImageFilter) | 104 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOffsetImageFilter) |
105 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter) | 105 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter) |
106 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) | 106 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) |
107 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) | 107 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) |
108 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) | 108 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) |
| 109 #ifdef SK_SUPPORT_LEGACY_PIXELREF_UNFLATTENABLE |
109 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef) | 110 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef) |
| 111 #endif |
110 | 112 |
111 SkArithmeticMode::InitializeFlattenables(); | 113 SkArithmeticMode::InitializeFlattenables(); |
112 SkBlurMaskFilter::InitializeFlattenables(); | 114 SkBlurMaskFilter::InitializeFlattenables(); |
113 SkColorFilter::InitializeFlattenables(); | 115 SkColorFilter::InitializeFlattenables(); |
114 SkGradientShader::InitializeFlattenables(); | 116 SkGradientShader::InitializeFlattenables(); |
115 SkLightingImageFilter::InitializeFlattenables(); | 117 SkLightingImageFilter::InitializeFlattenables(); |
116 SkTableColorFilter::InitializeFlattenables(); | 118 SkTableColorFilter::InitializeFlattenables(); |
117 SkXfermode::InitializeFlattenables(); | 119 SkXfermode::InitializeFlattenables(); |
118 } | 120 } |
119 | 121 |
120 void SkFlattenable::InitializeFlattenablesIfNeeded() { | 122 void SkFlattenable::InitializeFlattenablesIfNeeded() { |
121 SK_DECLARE_STATIC_ONCE(once); | 123 SK_DECLARE_STATIC_ONCE(once); |
122 SkOnce(&once, InitializeFlattenables); | 124 SkOnce(&once, InitializeFlattenables); |
123 } | 125 } |
OLD | NEW |