|
Factory methods for heap-allocated SkImageFilter objects.
This is part of an effort to ensure that all SkPaint effects can only be
allocated on the heap.
This patch makes the constructors of SkImageFilter and its subclasses non-public
and instead provides factory methods for creating these objects on the heap. We
temporarily keep constructor of publicly visible classes public behind a flag.
BUG= skia:2187
Committed: http://code.google.com/p/skia/source/detail?r=13718
Total comments: 10
Total comments: 12
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+572 lines, -401 lines) |
Patch |
|
M |
bench/BlurImageFilterBench.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
bench/DisplacementBench.cpp
|
View
|
|
3 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
|
M |
bench/MagnifierBench.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
bench/MatrixConvolutionBench.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
bench/MergeBench.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
bench/MorphologyBench.cpp
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
gm/bitmapsource.cpp
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
gm/colorfilterimagefilter.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gm/displacement.cpp
|
View
|
|
1 chunk |
+95 lines, -95 lines |
0 comments
|
Download
|
|
M |
gm/dropshadowimagefilter.cpp
|
View
|
|
1 chunk |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
gm/imageblur.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gm/imageblurtiled.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gm/imagefiltersbase.cpp
|
View
|
|
3 chunks |
+12 lines, -6 lines |
0 comments
|
Download
|
|
M |
gm/imagefiltersclipped.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+14 lines, -14 lines |
0 comments
|
Download
|
|
M |
gm/imagefilterscropped.cpp
|
View
|
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
gm/imagefiltersgraph.cpp
|
View
|
|
4 chunks |
+12 lines, -10 lines |
0 comments
|
Download
|
|
M |
gm/imagefiltersscaled.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+14 lines, -14 lines |
0 comments
|
Download
|
|
M |
gm/imagemagnifier.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gm/imageresizetiled.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gm/matrixconvolution.cpp
|
View
|
|
1 chunk |
+9 lines, -9 lines |
0 comments
|
Download
|
|
M |
gm/morphology.cpp
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
gm/offsetimagefilter.cpp
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
gm/pictureimagefilter.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
gm/resizeimagefilter.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
gm/spritebitmap.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
gm/testimagefilters.cpp
|
View
|
|
4 chunks |
+16 lines, -16 lines |
0 comments
|
Download
|
|
M |
gm/tileimagefilter.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
gm/xfermodeimagefilter.cpp
|
View
|
|
6 chunks |
+13 lines, -15 lines |
0 comments
|
Download
|
|
M |
include/effects/SkBicubicImageFilter.h
|
View
|
1
|
1 chunk |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
include/effects/SkBitmapSource.h
|
View
|
|
2 chunks |
+13 lines, -2 lines |
0 comments
|
Download
|
|
M |
include/effects/SkBlurImageFilter.h
|
View
|
1
2
3
|
2 chunks |
+15 lines, -4 lines |
0 comments
|
Download
|
|
M |
include/effects/SkComposeImageFilter.h
|
View
|
1
2
|
2 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
|
M |
include/effects/SkDisplacementMapEffect.h
|
View
|
1
2
3
4
|
2 chunks |
+19 lines, -8 lines |
0 comments
|
Download
|
|
M |
include/effects/SkDropShadowImageFilter.h
|
View
|
1
2
|
2 chunks |
+18 lines, -3 lines |
0 comments
|
Download
|
|
M |
include/effects/SkMagnifierImageFilter.h
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
include/effects/SkMatrixConvolutionImageFilter.h
|
View
|
1
2
3
4
|
2 chunks |
+47 lines, -30 lines |
0 comments
|
Download
|
|
M |
include/effects/SkMergeImageFilter.h
|
View
|
1
2
|
2 chunks |
+21 lines, -6 lines |
0 comments
|
Download
|
|
M |
include/effects/SkMorphologyImageFilter.h
|
View
|
1
2
3
|
5 chunks |
+28 lines, -9 lines |
0 comments
|
Download
|
|
M |
include/effects/SkOffsetImageFilter.h
|
View
|
1
2
|
2 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
|
M |
include/effects/SkPictureImageFilter.h
|
View
|
1
2
3
4
|
2 chunks |
+14 lines, -4 lines |
0 comments
|
Download
|
|
M |
include/effects/SkResizeImageFilter.h
|
View
|
1
2
|
3 chunks |
+12 lines, -3 lines |
0 comments
|
Download
|
|
M |
include/effects/SkTestImageFilters.h
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
include/effects/SkTileImageFilter.h
|
View
|
1
2
|
2 chunks |
+11 lines, -3 lines |
0 comments
|
Download
|
|
M |
include/effects/SkXfermodeImageFilter.h
|
View
|
1
2
|
2 chunks |
+12 lines, -3 lines |
0 comments
|
Download
|
|
M |
samplecode/SampleFilterFuzz.cpp
|
View
|
|
4 chunks |
+16 lines, -16 lines |
0 comments
|
Download
|
|
M |
src/effects/SkDisplacementMapEffect.cpp
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkDropShadowImageFilter.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkMagnifierImageFilter.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkMatrixConvolutionImageFilter.cpp
|
View
|
1
2
3
4
|
20 chunks |
+28 lines, -28 lines |
0 comments
|
Download
|
|
M |
src/effects/SkPictureImageFilter.cpp
|
View
|
1
2
3
4
|
4 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
tests/GLProgramsTest.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
tests/ImageFilterTest.cpp
|
View
|
|
3 chunks |
+15 lines, -15 lines |
0 comments
|
Download
|
|
M |
tests/SerializationTest.cpp
|
View
|
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
Total messages: 19 (0 generated)
|