FuzzCanvas: only valid ChannelSelectors

BUG=skia:6374
Change-Id: Idf925dbe32298672d7e5debb7e95499269d93706
Reviewed-on: https://skia-review.googlesource.com/9781
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
This commit is contained in:
Hal Canary 2017-03-15 16:58:33 -04:00 committed by Skia Commit-Bot
parent 2ba659e85f
commit f49b1e0ad9

View File

@ -755,8 +755,8 @@ static sk_sp<SkImageFilter> make_fuzz_imageFilter(Fuzz* fuzz, int depth) {
}
case 7: {
SkDisplacementMapEffect::ChannelSelectorType xChannelSelector, yChannelSelector;
fuzz_enum_range(fuzz, &xChannelSelector, 0, 4);
fuzz_enum_range(fuzz, &yChannelSelector, 0, 4);
fuzz_enum_range(fuzz, &xChannelSelector, 1, 4);
fuzz_enum_range(fuzz, &yChannelSelector, 1, 4);
SkScalar scale;
bool useCropRect;
fuzz->next(&scale, &useCropRect);