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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 SkArithmeticMode::InitializeFlattenables(); | 113 SkArithmeticMode::InitializeFlattenables(); |
114 SkBlurMaskFilter::InitializeFlattenables(); | 114 SkBlurMaskFilter::InitializeFlattenables(); |
115 SkColorFilter::InitializeFlattenables(); | 115 SkColorFilter::InitializeFlattenables(); |
116 SkGradientShader::InitializeFlattenables(); | 116 SkGradientShader::InitializeFlattenables(); |
117 SkLightingImageFilter::InitializeFlattenables(); | 117 SkLightingImageFilter::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 void SkFlattenable::InitializeFlattenablesIfNeeded() { | 124 void SkFlattenable::InitializeFlattenablesIfNeeded() { |
124 SK_DECLARE_STATIC_ONCE(once); | |
125 SkOnce(&once, SkPrivateEffectInitializer::Init); | 125 SkOnce(&once, SkPrivateEffectInitializer::Init); |
126 } | 126 } |
OLD | NEW |