Hal Canary | 13872dd | 2018-04-06 10:25:12 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #include "Fuzz.h" |
| 9 | #include "FuzzCommon.h" |
| 10 | |
| 11 | DEF_FUZZ(RegionOp, fuzz) { // `fuzz -t api -n RegionOp` |
| 12 | SkRegion regionA, regionB, regionC; |
| 13 | fuzz_region(fuzz, ®ionA, 2000); |
| 14 | fuzz_region(fuzz, ®ionB, 2000); |
| 15 | SkRegion::Op op; |
| 16 | fuzz_enum_range(fuzz, &op, (SkRegion::Op)0, SkRegion::kLastOp); |
| 17 | regionC.op(regionA, regionB, op); |
| 18 | } |