FuzzCommon.h 729 B

1234567891011121314151617181920212223242526272829
  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. #ifndef FuzzCommon_DEFINED
  8. #define FuzzCommon_DEFINED
  9. #include "fuzz/Fuzz.h"
  10. #include "include/core/SkMatrix.h"
  11. #include "include/core/SkPath.h"
  12. #include "include/core/SkRRect.h"
  13. #include "include/core/SkRegion.h"
  14. // allows some float values for path points
  15. void FuzzNicePath(Fuzz* fuzz, SkPath* path, int maxOps);
  16. // allows all float values for path points
  17. void FuzzEvilPath(Fuzz* fuzz, SkPath* path, int last_verb);
  18. void FuzzNiceRRect(Fuzz* fuzz, SkRRect* rr);
  19. void FuzzNiceMatrix(Fuzz* fuzz, SkMatrix* m);
  20. void FuzzNiceRegion(Fuzz* fuzz, SkRegion* region, int maxN);
  21. #endif