2018-01-11 15:27:14 +00:00
|
|
|
/*
|
2018-02-27 13:30:43 +00:00
|
|
|
* Copyright 2018 Google, LLC
|
2018-01-11 15:27:14 +00:00
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
2018-03-09 19:02:46 +00:00
|
|
|
#ifndef FuzzCommon_DEFINED
|
|
|
|
#define FuzzCommon_DEFINED
|
|
|
|
|
2018-01-11 15:27:14 +00:00
|
|
|
#include "Fuzz.h"
|
2018-09-17 18:46:57 +00:00
|
|
|
#include "SkMatrix.h"
|
2018-01-11 15:27:14 +00:00
|
|
|
#include "SkPath.h"
|
2018-09-17 18:46:57 +00:00
|
|
|
#include "SkRRect.h"
|
2018-01-11 15:27:14 +00:00
|
|
|
#include "SkRegion.h"
|
|
|
|
|
2018-03-09 19:02:46 +00:00
|
|
|
// allows some float values for path points
|
2018-09-25 16:16:53 +00:00
|
|
|
void FuzzNicePath(Fuzz* fuzz, SkPath* path, int maxOps);
|
2018-03-09 19:02:46 +00:00
|
|
|
// allows all float values for path points
|
2018-09-25 16:16:53 +00:00
|
|
|
void FuzzEvilPath(Fuzz* fuzz, SkPath* path, int last_verb);
|
2018-03-09 19:02:46 +00:00
|
|
|
|
2018-09-17 18:46:57 +00:00
|
|
|
void FuzzNiceRRect(Fuzz* fuzz, SkRRect* rr);
|
|
|
|
|
|
|
|
void FuzzNiceMatrix(Fuzz* fuzz, SkMatrix* m);
|
|
|
|
|
|
|
|
void FuzzNiceRegion(Fuzz* fuzz, SkRegion* region, int maxN);
|
|
|
|
|
2018-03-09 19:02:46 +00:00
|
|
|
#endif
|
2018-06-05 21:21:30 +00:00
|
|
|
|