|
Adding more validation
- Added a way to check that the number of inputs of a filter is not more than a filter expects
- Added validation of reftype in SkBitmap::unflatten()
- Added validation on fKD (diffuse lighting constant) and fKS (specular lighting constant) to make sure that they are always non-negative numbers
- Added validation of SkPerlinNoiseShader::fType and SkPerlinNoiseShader::fNumOctaves
BUG=
Committed: http://code.google.com/p/skia/source/detail?r=12388
Total comments: 2
Total comments: 2
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+85 lines, -52 lines) |
Patch |
|
M |
gm/imagefiltersbase.cpp
|
View
|
1
2
3
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
gm/imagefiltersgraph.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
include/core/SkImageFilter.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/core/SkBitmap.cpp
|
View
|
|
1 chunk |
+14 lines, -12 lines |
0 comments
|
Download
|
|
M |
src/core/SkImageFilter.cpp
|
View
|
1
2
3
|
1 chunk |
+19 lines, -12 lines |
0 comments
|
Download
|
|
M |
src/effects/SkBicubicImageFilter.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkBitmapSource.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/effects/SkBlurImageFilter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkColorFilterImageFilter.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkComposeImageFilter.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkDisplacementMapEffect.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkDropShadowImageFilter.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/effects/SkLightingImageFilter.cpp
|
View
|
1
2
3
|
5 chunks |
+9 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/effects/SkMagnifierImageFilter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkMatrixConvolutionImageFilter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkMergeImageFilter.cpp
|
View
|
1
2
3
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkMorphologyImageFilter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkOffsetImageFilter.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkPerlinNoiseShader.cpp
|
View
|
1
2
3
4
5
|
3 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkRectShaderImageFilter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkTestImageFilters.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkTileImageFilter.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkXfermodeImageFilter.cpp
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 17 (0 generated)
|