blob: ec0194dba88ceefc95b6c223183e6584c1185059 [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
8#include "Fuzz.h"
9#include "FuzzCommon.h"
10
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;
Kevin Lubickbc9a1a82018-09-17 14:46:57 -040016 fuzz->nextEnum(&op, 0, SkRegion::kLastOp);
Hal Canary13872dd2018-04-06 10:25:12 -040017 regionC.op(regionA, regionB, op);
18}