Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
FuzzRegionOp.cpp File Reference
#include "fuzz/Fuzz.h"
#include "fuzz/FuzzCommon.h"

Go to the source code of this file.

Functions

 DEF_FUZZ (RegionOp, fuzz)
 

Function Documentation

◆ DEF_FUZZ()

DEF_FUZZ ( RegionOp  ,
fuzz   
)

Definition at line 11 of file FuzzRegionOp.cpp.

11 { // `fuzz -t api -n RegionOp`
13 // FuzzNiceRegion generates a random region by joining a random amount of regions
14 // together. This fuzzer simply targets that directly. 300 was picked arbitrarily as
15 // a number over 2^8.
16 FuzzNiceRegion(fuzz, &region, 300);
17 // Do a computation to make sure region is not optimized out.
19}
void FuzzNiceRegion(Fuzz *fuzz, SkRegion *region, int maxN)
int computeRegionComplexity() const
Definition SkRegion.cpp:176
ClipOpAndAA opAA SkRegion region
Definition SkRecords.h:238