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 | |
Mike Klein | c0bd9f9 | 2019-04-23 12:05:21 -0500 | [diff] [blame] | 8 | #include "fuzz/Fuzz.h" |
| 9 | #include "fuzz/FuzzCommon.h" |
Hal Canary | 13872dd | 2018-04-06 10:25:12 -0400 | [diff] [blame] | 10 | |
| 11 | DEF_FUZZ(RegionOp, fuzz) { // `fuzz -t api -n RegionOp` |
| 12 | SkRegion regionA, regionB, regionC; |
Kevin Lubick | bc9a1a8 | 2018-09-17 14:46:57 -0400 | [diff] [blame] | 13 | FuzzNiceRegion(fuzz, ®ionA, 2000); |
| 14 | FuzzNiceRegion(fuzz, ®ionB, 2000); |
Hal Canary | 13872dd | 2018-04-06 10:25:12 -0400 | [diff] [blame] | 15 | SkRegion::Op op; |
Mike Klein | f88f5ef | 2018-11-19 12:21:46 -0500 | [diff] [blame] | 16 | fuzz->nextRange(&op, 0, SkRegion::kLastOp); |
Hal Canary | 13872dd | 2018-04-06 10:25:12 -0400 | [diff] [blame] | 17 | regionC.op(regionA, regionB, op); |
| 18 | } |