• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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 
DEF_FUZZ(RegionOp,fuzz)11 DEF_FUZZ(RegionOp, fuzz) {  // `fuzz -t api -n RegionOp`
12     SkRegion regionA, regionB, regionC;
13     FuzzNiceRegion(fuzz, &regionA, 2000);
14     FuzzNiceRegion(fuzz, &regionB, 2000);
15     SkRegion::Op op;
16     fuzz->nextRange(&op, 0, SkRegion::kLastOp);
17     regionC.op(regionA, regionB, op);
18 }
19