|
Clean up SkImageFilter constructors.
Now that all creation of SkImageFilters goes through
factory Create() methods, there's no real reason for the
convenience constructors. Some SkImageFilter subclasses
which actually have zero DAG-able inputs were passing NULL
to the superclass constructor. This actually means 1 input,
with a NULL value, not zero inputs. This becomes more
relevant for the upcoming cache infrastructure, where this
indicates that the filter will use its src input, where in
fact some of these filters do not (they are image generators
only).
Limiting SkImageFilter to a single constructor resolves this
ambiguity.
Along the way, I removed all of the default parameters to
the constructors, since the Create methods always call them
with the full argument list.
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/9ea3d57fde28a5fe4487a111dc3dd49418235e5e
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+69 lines, -100 lines) |
Patch |
|
M |
gm/imagefiltersbase.cpp
|
View
|
1
2
3
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
gm/imagefiltersgraph.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
include/core/SkImageFilter.h
|
View
|
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
include/effects/SkAlphaThresholdFilter.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
include/effects/SkColorFilterImageFilter.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
include/effects/SkComposeImageFilter.h
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
include/effects/SkDisplacementMapEffect.h
|
View
|
1
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
include/effects/SkLightingImageFilter.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
include/effects/SkMagnifierImageFilter.h
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
include/effects/SkMatrixImageFilter.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
include/effects/SkMergeImageFilter.h
|
View
|
1
|
2 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
|
M |
include/effects/SkMorphologyImageFilter.h
|
View
|
1
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
|
M |
include/effects/SkTestImageFilters.h
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
include/effects/SkTileImageFilter.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
include/effects/SkXfermodeImageFilter.h
|
View
|
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/core/SkImageFilter.cpp
|
View
|
|
1 chunk |
+0 lines, -17 lines |
0 comments
|
Download
|
|
M |
src/effects/SkAlphaThresholdFilter.cpp
|
View
|
1
2
3
4
|
3 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/effects/SkBlurImageFilter.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkColorFilterImageFilter.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkDisplacementMapEffect.cpp
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/effects/SkDropShadowImageFilter.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/effects/SkLightingImageFilter.cpp
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/effects/SkMagnifierImageFilter.cpp
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/effects/SkMatrixConvolutionImageFilter.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkMatrixImageFilter.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkMergeImageFilter.cpp
|
View
|
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/effects/SkMorphologyImageFilter.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkOffsetImageFilter.cpp
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkRectShaderImageFilter.cpp
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/effects/SkXfermodeImageFilter.cpp
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
tests/ImageFilterTest.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|