blob: ad38496ad3bc87d5a1fb8b7ae178eef7eac3b2a7 [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
Mike Kleinc0bd9f92019-04-23 12:05:21 -050011#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"
Kevin Lubick2541edf2018-01-11 10:27:14 -050016
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