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" |
senorblanco@chromium.org | 35c5ff0 | 2012-08-22 18:34:16 +0000 | [diff] [blame^] | 24 | #include "SkBlendImageFilter.h" |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 25 | #include "SkBlurDrawLooper.h" |
| 26 | #include "SkBlurImageFilter.h" |
| 27 | #include "SkBlurMaskFilter.h" |
| 28 | #include "SkColorFilter.h" |
senorblanco@chromium.org | 392e14e | 2012-08-20 19:45:02 +0000 | [diff] [blame] | 29 | #include "SkColorFilterImageFilter.h" |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 30 | #include "SkColorMatrixFilter.h" |
| 31 | #include "SkColorShader.h" |
scroggo | b3c0f48 | 2012-07-02 19:07:57 +0000 | [diff] [blame] | 32 | #include "SkColorTable.h" |
| 33 | #include "SkComposeShader.h" |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 34 | #include "SkCornerPathEffect.h" |
| 35 | #include "SkDashPathEffect.h" |
| 36 | #include "SkDiscretePathEffect.h" |
| 37 | #include "SkEmptyShader.h" |
scroggo@google.com | 72ae6bd | 2012-04-20 18:42:55 +0000 | [diff] [blame] | 38 | #include "SkEmbossMaskFilter.h" |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 39 | #include "SkFlattenable.h" |
| 40 | #include "SkGradientShader.h" |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 41 | #include "SkLayerDrawLooper.h" |
| 42 | #include "SkLayerRasterizer.h" |
djsollen@google.com | 0833777 | 2012-06-26 14:33:13 +0000 | [diff] [blame] | 43 | #include "SkLightingImageFilter.h" |
senorblanco@chromium.org | 35c5ff0 | 2012-08-22 18:34:16 +0000 | [diff] [blame^] | 44 | #include "SkMagnifierImageFilter.h" |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 45 | #include "SkMorphologyImageFilter.h" |
| 46 | #include "SkPathEffect.h" |
| 47 | #include "SkPixelXorXfermode.h" |
robertphillips@google.com | 088719e | 2012-06-05 13:22:14 +0000 | [diff] [blame] | 48 | #include "SkStippleMaskFilter.h" |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 49 | #include "SkTableColorFilter.h" |
| 50 | #include "SkTestImageFilters.h" |
| 51 | |
caryclark@google.com | d26147a | 2011-12-15 14:16:43 +0000 | [diff] [blame] | 52 | void SkFlattenable::InitializeFlattenables() { |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 53 | |
| 54 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkAvoidXfermode) |
| 55 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapProcShader) |
senorblanco@chromium.org | b2ee33c | 2012-08-22 16:24:44 +0000 | [diff] [blame] | 56 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlendImageFilter) |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 57 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurDrawLooper) |
| 58 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurImageFilter) |
| 59 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorMatrixFilter) |
| 60 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorShader) |
scroggo | b3c0f48 | 2012-07-02 19:07:57 +0000 | [diff] [blame] | 61 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorTable) |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 62 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposePathEffect) |
scroggo | b3c0f48 | 2012-07-02 19:07:57 +0000 | [diff] [blame] | 63 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeShader) |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 64 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkCornerPathEffect) |
| 65 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDashPathEffect) |
| 66 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDilateImageFilter) |
| 67 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDiscretePathEffect) |
scroggo@google.com | 72ae6bd | 2012-04-20 18:42:55 +0000 | [diff] [blame] | 68 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmbossMaskFilter) |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 69 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkEmptyShader) |
| 70 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkErodeImageFilter) |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 71 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerDrawLooper) |
| 72 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLayerRasterizer) |
| 73 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath1DPathEffect) |
| 74 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPath2DPathEffect) |
| 75 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkPixelXorXfermode) |
robertphillips@google.com | 941ee93 | 2012-06-05 12:55:05 +0000 | [diff] [blame] | 76 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkStippleMaskFilter) |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 77 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSumPathEffect) |
bsalomon@google.com | 82aa748 | 2012-08-13 14:22:17 +0000 | [diff] [blame] | 78 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter) |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 79 | |
| 80 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOffsetImageFilter) |
| 81 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter) |
| 82 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) |
| 83 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) |
| 84 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) |
| 85 | |
djsollen@google.com | 5370cd9 | 2012-03-28 20:47:01 +0000 | [diff] [blame] | 86 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkFlipPixelRef) |
| 87 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkImageRef_GlobalPool) |
| 88 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMallocPixelRef) |
| 89 | |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 90 | SkBlurMaskFilter::InitializeFlattenables(); |
| 91 | SkColorFilter::InitializeFlattenables(); |
| 92 | SkGradientShader::InitializeFlattenables(); |
djsollen@google.com | 0833777 | 2012-06-26 14:33:13 +0000 | [diff] [blame] | 93 | SkLightingImageFilter::InitializeFlattenables(); |
djsollen@google.com | a2ca41e | 2012-03-23 19:00:34 +0000 | [diff] [blame] | 94 | SkTableColorFilter::InitializeFlattenables(); |
| 95 | SkXfermode::InitializeFlattenables(); |
caryclark@google.com | d26147a | 2011-12-15 14:16:43 +0000 | [diff] [blame] | 96 | } |
| 97 | |
| 98 | #endif |