Chromium Code Reviews| 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 "Sk1DPathEffect.h" | 8 #include "Sk1DPathEffect.h" |
| 9 #include "Sk2DPathEffect.h" | 9 #include "Sk2DPathEffect.h" |
| 10 #include "SkAlphaThresholdFilter.h" | 10 #include "SkAlphaThresholdFilter.h" |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 39 #include "SkOffsetImageFilter.h" | 39 #include "SkOffsetImageFilter.h" |
| 40 #include "SkPaintImageFilter.h" | 40 #include "SkPaintImageFilter.h" |
| 41 #include "SkPerlinNoiseShader.h" | 41 #include "SkPerlinNoiseShader.h" |
| 42 #include "SkPictureImageFilter.h" | 42 #include "SkPictureImageFilter.h" |
| 43 #include "SkPixelXorXfermode.h" | 43 #include "SkPixelXorXfermode.h" |
| 44 #include "SkTableColorFilter.h" | 44 #include "SkTableColorFilter.h" |
| 45 #include "SkTestImageFilters.h" | 45 #include "SkTestImageFilters.h" |
| 46 #include "SkTileImageFilter.h" | 46 #include "SkTileImageFilter.h" |
| 47 #include "SkXfermodeImageFilter.h" | 47 #include "SkXfermodeImageFilter.h" |
| 48 | 48 |
| 49 // Security note: | |
| 50 // | |
| 51 // As new subclasses are added here, they should be reviewed by chrome security before they | |
|
Oliver Chang
2016/02/03 23:53:58
could you please also add a note to extend the fil
reed1
2016/02/04 00:03:16
Done.
| |
| 52 // support deserializing cross-process. | |
| 53 // | |
| 54 // See SkReadBuffer::isCrossProcess() and SkPicture::PictureIOSecurityPrecaution sEnabled() | |
| 55 // | |
| 56 | |
| 49 /* | 57 /* |
| 50 * None of these are strictly "required" for Skia to operate. | 58 * None of these are strictly "required" for Skia to operate. |
| 51 * | 59 * |
| 52 * These are the bulk of our "effects" -- subclasses of various effects on SkPa int. | 60 * These are the bulk of our "effects" -- subclasses of various effects on SkPa int. |
| 53 * | 61 * |
| 54 * Clients should feel free to dup this file and modify it as needed. This func tion "InitEffects" | 62 * Clients should feel free to dup this file and modify it as needed. This func tion "InitEffects" |
| 55 * will automatically be called before any of skia's effects are asked to be de serialized. | 63 * will automatically be called before any of skia's effects are asked to be de serialized. |
| 56 */ | 64 */ |
| 57 void SkFlattenable::PrivateInitializer::InitEffects() { | 65 void SkFlattenable::PrivateInitializer::InitEffects() { |
| 58 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSourceDeserializer) | 66 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSourceDeserializer) |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 108 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter) | 116 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter) |
| 109 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter) | 117 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter) |
| 110 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixConvolutionImageFilter) | 118 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixConvolutionImageFilter) |
| 111 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOffsetImageFilter) | 119 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOffsetImageFilter) |
| 112 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter) | 120 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter) |
| 113 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) | 121 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) |
| 114 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) | 122 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) |
| 115 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) | 123 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) |
| 116 SkLightingImageFilter::InitializeFlattenables(); | 124 SkLightingImageFilter::InitializeFlattenables(); |
| 117 } | 125 } |
| OLD | NEW |