blob: 02a40360af51c1c0ed4b606f8cff43e40c8fe198 [file] [log] [blame]
Hal Canary13872dd2018-04-06 10:25:12 -04001/*
2 * Copyright 2018 Google Inc.
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
Mike Kleinc0bd9f92019-04-23 12:05:21 -05008#include "fuzz/Fuzz.h"
9#include "fuzz/FuzzCommon.h"
Hal Canary13872dd2018-04-06 10:25:12 -040010
11DEF_FUZZ(RegionOp, fuzz) { // `fuzz -t api -n RegionOp`
12 SkRegion regionA, regionB, regionC;
Kevin Lubickbc9a1a82018-09-17 14:46:57 -040013 FuzzNiceRegion(fuzz, &regionA, 2000);
14 FuzzNiceRegion(fuzz, &regionB, 2000);
Hal Canary13872dd2018-04-06 10:25:12 -040015 SkRegion::Op op;
Mike Kleinf88f5ef2018-11-19 12:21:46 -050016 fuzz->nextRange(&op, 0, SkRegion::kLastOp);
Hal Canary13872dd2018-04-06 10:25:12 -040017 regionC.op(regionA, regionB, op);
18}