48 return a.intersects(
b);
54 return a.intersects(r);
60 const int dy = r.
height() / 8;
63 (void)
a.contains(
x,
y);
110 for (
int i = 0;
i < loops; ++
i) {
static bool diff_proc(SkRegion &a, SkRegion &b)
static bool diffrect_proc(SkRegion &a, SkRegion &b)
static bool containsrect_proc(SkRegion &a, SkRegion &b)
static bool union_proc(SkRegion &a, SkRegion &b)
static bool diffrectbig_proc(SkRegion &a, SkRegion &b)
static bool sect_proc(SkRegion &a, SkRegion &b)
static bool sectsrect_proc(SkRegion &a, SkRegion &b)
static bool sectsrgn_proc(SkRegion &a, SkRegion &b)
static bool containsxy_proc(SkRegion &a, SkRegion &b)
bool isSuitableFor(Backend backend) override
const char * onGetName() override
SkIRect randrect(SkRandom &rand)
RegionBench(int count, Proc proc, const char name[])
void onDraw(int loops, SkCanvas *canvas) override
bool(* Proc)(SkRegion &a, SkRegion &b)
@ kUnion_Op
target unioned with operand
@ kIntersect_Op
target intersected with operand
@ kDifference_Op
target minus operand
@ kXOR_Op
target exclusive or with operand
bool op(const SkIRect &rect, Op op)
void printf(const char format[],...) SK_PRINTF_LIKE(2
const char * c_str() const
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
DEF_SWITCHES_START aot vmservice shared library name
void inset(int32_t dx, int32_t dy)
int32_t fBottom
larger y-axis bounds
constexpr int32_t height() const
int32_t fTop
smaller y-axis bounds
constexpr int32_t width() const
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)
int32_t fLeft
smaller x-axis bounds
int32_t fRight
larger x-axis bounds