2018-04-06 14:25:12 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2018 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "Fuzz.h"
|
|
|
|
#include "FuzzCommon.h"
|
|
|
|
|
|
|
|
DEF_FUZZ(RegionOp, fuzz) { // `fuzz -t api -n RegionOp`
|
|
|
|
SkRegion regionA, regionB, regionC;
|
2018-09-17 18:46:57 +00:00
|
|
|
FuzzNiceRegion(fuzz, ®ionA, 2000);
|
|
|
|
FuzzNiceRegion(fuzz, ®ionB, 2000);
|
2018-04-06 14:25:12 +00:00
|
|
|
SkRegion::Op op;
|
2018-11-19 17:21:46 +00:00
|
|
|
fuzz->nextRange(&op, 0, SkRegion::kLastOp);
|
2018-04-06 14:25:12 +00:00
|
|
|
regionC.op(regionA, regionB, op);
|
|
|
|
}
|