Kevin Lubick | 2541edf | 2018-01-11 10:27:14 -0500 | [diff] [blame] | 1 | /* |
Kevin Lubick | db1e5c6 | 2018-02-27 08:30:43 -0500 | [diff] [blame] | 2 | * Copyright 2018 Google, LLC |
Kevin Lubick | 2541edf | 2018-01-11 10:27:14 -0500 | [diff] [blame] | 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 | |
Cary Clark | 91390c8 | 2018-03-09 14:02:46 -0500 | [diff] [blame] | 8 | #ifndef FuzzCommon_DEFINED |
| 9 | #define FuzzCommon_DEFINED |
| 10 | |
Kevin Lubick | 2541edf | 2018-01-11 10:27:14 -0500 | [diff] [blame] | 11 | #include "Fuzz.h" |
Kevin Lubick | bc9a1a8 | 2018-09-17 14:46:57 -0400 | [diff] [blame] | 12 | #include "SkMatrix.h" |
Kevin Lubick | 2541edf | 2018-01-11 10:27:14 -0500 | [diff] [blame] | 13 | #include "SkPath.h" |
Kevin Lubick | bc9a1a8 | 2018-09-17 14:46:57 -0400 | [diff] [blame] | 14 | #include "SkRRect.h" |
Kevin Lubick | 2541edf | 2018-01-11 10:27:14 -0500 | [diff] [blame] | 15 | #include "SkRegion.h" |
| 16 | |
Cary Clark | 91390c8 | 2018-03-09 14:02:46 -0500 | [diff] [blame] | 17 | // allows some float values for path points |
Mike Klein | 7ffa40c | 2018-09-25 12:16:53 -0400 | [diff] [blame] | 18 | void FuzzNicePath(Fuzz* fuzz, SkPath* path, int maxOps); |
Cary Clark | 91390c8 | 2018-03-09 14:02:46 -0500 | [diff] [blame] | 19 | // allows all float values for path points |
Mike Klein | 7ffa40c | 2018-09-25 12:16:53 -0400 | [diff] [blame] | 20 | void FuzzEvilPath(Fuzz* fuzz, SkPath* path, int last_verb); |
Cary Clark | 91390c8 | 2018-03-09 14:02:46 -0500 | [diff] [blame] | 21 | |
Kevin Lubick | bc9a1a8 | 2018-09-17 14:46:57 -0400 | [diff] [blame] | 22 | void FuzzNiceRRect(Fuzz* fuzz, SkRRect* rr); |
| 23 | |
| 24 | void FuzzNiceMatrix(Fuzz* fuzz, SkMatrix* m); |
| 25 | |
| 26 | void FuzzNiceRegion(Fuzz* fuzz, SkRegion* region, int maxN); |
| 27 | |
Cary Clark | 91390c8 | 2018-03-09 14:02:46 -0500 | [diff] [blame] | 28 | #endif |
Kevin Lubick | fe6b489 | 2018-06-05 17:21:30 -0400 | [diff] [blame] | 29 | |