diff options
author | Robert Phillips <robertphillips@google.com> | 2016-12-19 11:37:37 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-12-19 17:14:10 +0000 |
commit | 98624d249d279f68127c76754d542ab5cd0f8eab (patch) | |
tree | 86e5e534316aed3dd95001b32180f0df72e23ffd /include/core/SkClipOp.h | |
parent | efa9d34ccbdeb541a1fa77a678552df7a08531be (diff) |
"Fix" some ImageFilter fuzzer issues
SkClipOp.h & SkPictureFlat.h
Invalid SkClipOps were getting through - the question here is where (for a class enum) is a good place to put the k*Mask definition.
SkPath1DPathEffect
NaNs were getting past.
SkBlurMaskFilter
Assert wasn't necessary since we whacked the flag on the next line.
Change-Id: I87f95ad39f4760284f881d7c4500eb82fcdba282
Reviewed-on: https://skia-review.googlesource.com/6194
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Diffstat (limited to 'include/core/SkClipOp.h')
-rw-r--r-- | include/core/SkClipOp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkClipOp.h b/include/core/SkClipOp.h index 1c4b3b713b..3035565c93 100644 --- a/include/core/SkClipOp.h +++ b/include/core/SkClipOp.h @@ -61,6 +61,8 @@ enum class SkClipOp { kXOR_private_internal_do_not_use = 3, kReverseDifference_private_internal_do_not_use = 4, kReplace_private_internal_do_not_use = 5, + + kMax_EnumValue = kReplace_private_internal_do_not_use }; #endif |