blob: c8190231a9ea52f7bc6b203629f46d4bb7365a3a [file] [log] [blame]
Kevin Lubick2541edf2018-01-11 10:27:14 -05001/*
Kevin Lubickdb1e5c62018-02-27 08:30:43 -05002 * Copyright 2018 Google, LLC
Kevin Lubick2541edf2018-01-11 10:27:14 -05003 *
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 Clark91390c82018-03-09 14:02:46 -05008#ifndef FuzzCommon_DEFINED
9#define FuzzCommon_DEFINED
10
Kevin Lubick2541edf2018-01-11 10:27:14 -050011#include "Fuzz.h"
Kevin Lubickbc9a1a82018-09-17 14:46:57 -040012#include "SkMatrix.h"
Kevin Lubick2541edf2018-01-11 10:27:14 -050013#include "SkPath.h"
Kevin Lubickbc9a1a82018-09-17 14:46:57 -040014#include "SkRRect.h"
Kevin Lubick2541edf2018-01-11 10:27:14 -050015#include "SkRegion.h"
16
Cary Clark91390c82018-03-09 14:02:46 -050017// allows some float values for path points
Mike Klein7ffa40c2018-09-25 12:16:53 -040018void FuzzNicePath(Fuzz* fuzz, SkPath* path, int maxOps);
Cary Clark91390c82018-03-09 14:02:46 -050019// allows all float values for path points
Mike Klein7ffa40c2018-09-25 12:16:53 -040020void FuzzEvilPath(Fuzz* fuzz, SkPath* path, int last_verb);
Cary Clark91390c82018-03-09 14:02:46 -050021
Kevin Lubickbc9a1a82018-09-17 14:46:57 -040022void FuzzNiceRRect(Fuzz* fuzz, SkRRect* rr);
23
24void FuzzNiceMatrix(Fuzz* fuzz, SkMatrix* m);
25
26void FuzzNiceRegion(Fuzz* fuzz, SkRegion* region, int maxN);
27
Cary Clark91390c82018-03-09 14:02:46 -050028#endif
Kevin Lubickfe6b4892018-06-05 17:21:30 -040029