caryclark@google.com | d26147a | 2011-12-15 14:16:43 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2011 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #include "SkTypes.h" |
| 9 | |
| 10 | #if !SK_ALLOW_STATIC_GLOBAL_INITIALIZERS |
| 11 | |
| 12 | #include "SkBitmapProcShader.h" |
caryclark@google.com | d26147a | 2011-12-15 14:16:43 +0000 | [diff] [blame] | 13 | #include "SkFlipPixelRef.h" |
| 14 | #include "SkImageRef_ashmem.h" |
| 15 | #include "SkImageRef_GlobalPool.h" |
| 16 | #include "SkMallocPixelRef.h" |
| 17 | #include "SkPathEffect.h" |
| 18 | #include "SkPixelRef.h" |
caryclark@google.com | d26147a | 2011-12-15 14:16:43 +0000 | [diff] [blame] | 19 | #include "SkXfermode.h" |
| 20 | |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 21 | #include "Sk1DPathEffect.h" |
| 22 | #include "Sk2DPathEffect.h" |
| 23 | #include "SkAvoidXfermode.h" |
| 24 | #include "SkBlurDrawLooper.h" |
| 25 | #include "SkBlurImageFilter.h" |
| 26 | #include "SkBlurMaskFilter.h" |
| 27 | #include "SkColorFilter.h" |
| 28 | #include "SkColorMatrixFilter.h" |
| 29 | #include "SkColorShader.h" |
scroggo | b3c0f48 | 2012-07-02 19:07:57 +0000 | [diff] [blame] | 30 | #include "SkColorTable.h" |
| 31 | #include "SkComposeShader.h" |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 32 | #include "SkCornerPathEffect.h" |
| 33 | #include "SkDashPathEffect.h" |
| 34 | #include "SkDiscretePathEffect.h" |
| 35 | #include "SkEmptyShader.h" |
scroggo@google.com | 72ae6bd | 2012-04-20 18:42:55 +0000 | [diff] [blame] | 36 | #include "SkEmbossMaskFilter.h" |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 37 | #include "SkFlattenable.h" |
| 38 | #include "SkGradientShader.h" |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 39 | #include "SkLayerDrawLooper.h" |
| 40 | #include "SkLayerRasterizer.h" |
djsollen@google.com | 0833777 | 2012-06-26 14:33:13 +0000 | [diff] [blame] | 41 | #include "SkLightingImageFilter.h" |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 42 | #include "SkMorphologyImageFilter.h" |
| 43 | #include "SkPathEffect.h" |
| 44 | #include "SkPixelXorXfermode.h" |
robertphillips@google.com | 088719e | 2012-06-05 13:22:14 +0000 | [diff] [blame] | 45 | #include "SkStippleMaskFilter.h" |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 46 | #include "SkTableColorFilter.h" |
| 47 | #include "SkTestImageFilters.h" |
bsalomon@google.com | 82aa748 | 2012-08-13 14:22:17 +0000 | [diff] [blame^] | 48 | #include "SkZoomImageFilter.h" |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 49 | |
caryclark@google.com | d26147a | 2011-12-15 14:16:43 +0000 | [diff] [blame] | 50 | void SkFlattenable::InitializeFlattenables() { |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 51 | |
| 52 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode) |
| 53 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader) |
| 54 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper) |
| 55 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter) |
| 56 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter) |
| 57 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader) |
scroggo | b3c0f48 | 2012-07-02 19:07:57 +0000 | [diff] [blame] | 58 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorTable) |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 59 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect) |
scroggo | b3c0f48 | 2012-07-02 19:07:57 +0000 | [diff] [blame] | 60 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader) |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 61 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect) |
| 62 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDashPathEffect) |
| 63 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDilateImageFilter) |
| 64 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDiscretePathEffect) |
scroggo@google.com | 72ae6bd | 2012-04-20 18:42:55 +0000 | [diff] [blame] | 65 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmbossMaskFilter) |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 66 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmptyShader) |
| 67 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkErodeImageFilter) |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 68 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper) |
| 69 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer) |
| 70 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect) |
| 71 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect) |
| 72 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode) |
robertphillips@google.com | 941ee93 | 2012-06-05 12:55:05 +0000 | [diff] [blame] | 73 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkStippleMaskFilter) |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 74 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect) |
bsalomon@google.com | 82aa748 | 2012-08-13 14:22:17 +0000 | [diff] [blame^] | 75 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter) |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 76 | |
| 77 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOffsetImageFilter) |
| 78 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter) |
| 79 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) |
| 80 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) |
| 81 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) |
| 82 | |
djsollen@google.com | 5370cd9 | 2012-03-28 20:47:01 +0000 | [diff] [blame] | 83 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkFlipPixelRef) |
| 84 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkImageRef_GlobalPool) |
| 85 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef) |
| 86 | |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 87 | SkBlurMaskFilter::InitializeFlattenables(); |
| 88 | SkColorFilter::InitializeFlattenables(); |
| 89 | SkGradientShader::InitializeFlattenables(); |
djsollen@google.com | 0833777 | 2012-06-26 14:33:13 +0000 | [diff] [blame] | 90 | SkLightingImageFilter::InitializeFlattenables(); |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 91 | SkTableColorFilter::InitializeFlattenables(); |
| 92 | SkXfermode::InitializeFlattenables(); |
caryclark@google.com | d26147a | 2011-12-15 14:16:43 +0000 | [diff] [blame] | 93 | } |
| 94 | |
| 95 | #endif |