1 /* 2 * Copyright 2018 Google, LLC 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 #ifndef FuzzCommon_DEFINED 9 #define FuzzCommon_DEFINED 10 11 #include "fuzz/Fuzz.h" 12 #include "include/core/SkMatrix.h" 13 #include "include/core/SkPath.h" 14 #include "include/core/SkRRect.h" 15 #include "include/core/SkRegion.h" 16 17 // allows some float values for path points 18 void FuzzNicePath(Fuzz* fuzz, SkPath* path, int maxOps); 19 // allows all float values for path points 20 void FuzzEvilPath(Fuzz* fuzz, SkPath* path, int last_verb); 21 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 28 #endif 29 30