blob: 7f8bbbefba295d61fc2a02d850db4a19772f85f9 [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;
13 fuzz_region(fuzz, &regionA, 2000);
14 fuzz_region(fuzz, &regionB, 2000);
15 SkRegion::Op op;
16 fuzz_enum_range(fuzz, &op, (SkRegion::Op)0, SkRegion::kLastOp);
17 regionC.op(regionA, regionB, op);
18}