Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/ports/SkGlobalInitialization_default.cpp

Issue 1667663004: add note about security and new subclasses (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
52 // support deserializing cross-process: chrome-security@google.com. SampleFilter Fuzz.cpp should
53 // also be amended to exercise the new subclass.
54 //
55 // See SkReadBuffer::isCrossProcess() and SkPicture::PictureIOSecurityPrecaution sEnabled()
56 //
57
49 /* 58 /*
50 * None of these are strictly "required" for Skia to operate. 59 * None of these are strictly "required" for Skia to operate.
51 * 60 *
52 * These are the bulk of our "effects" -- subclasses of various effects on SkPa int. 61 * These are the bulk of our "effects" -- subclasses of various effects on SkPa int.
53 * 62 *
54 * Clients should feel free to dup this file and modify it as needed. This func tion "InitEffects" 63 * 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. 64 * will automatically be called before any of skia's effects are asked to be de serialized.
56 */ 65 */
57 void SkFlattenable::PrivateInitializer::InitEffects() { 66 void SkFlattenable::PrivateInitializer::InitEffects() {
58 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSourceDeserializer) 67 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBitmapSourceDeserializer)
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter) 117 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkXfermodeImageFilter)
109 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter) 118 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMagnifierImageFilter)
110 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixConvolutionImageFilter) 119 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMatrixConvolutionImageFilter)
111 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOffsetImageFilter) 120 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkOffsetImageFilter)
112 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter) 121 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkComposeImageFilter)
113 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter) 122 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkMergeImageFilter)
114 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter) 123 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkColorFilterImageFilter)
115 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter) 124 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDownSampleImageFilter)
116 SkLightingImageFilter::InitializeFlattenables(); 125 SkLightingImageFilter::InitializeFlattenables();
117 } 126 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698