Home | History | Annotate | Download | only in bench

Lines Matching refs:SkRegion

10 #include "SkRegion.h"
13 static bool union_proc(SkRegion& a, SkRegion& b) {
14 SkRegion result;
15 return result.op(a, b, SkRegion::kUnion_Op);
18 static bool sect_proc(SkRegion& a, SkRegion& b) {
19 SkRegion result;
20 return result.op(a, b, SkRegion::kIntersect_Op);
23 static bool diff_proc(SkRegion& a, SkRegion& b) {
24 SkRegion result;
25 return result.op(a, b, SkRegion::kDifference_Op);
28 static bool diffrect_proc(SkRegion& a, SkRegion& b) {
29 SkRegion result;
30 return result.op(a, b.getBounds(), SkRegion::kDifference_Op);
33 static bool diffrectbig_proc(SkRegion& a, SkRegion& b) {
34 SkRegion result;
35 return result.op(a, a.getBounds(), SkRegion::kDifference_Op);
38 static bool containsrect_proc(SkRegion& a, SkRegion& b) {
48 static bool sectsrgn_proc(SkRegion& a, SkRegion& b) {
52 static bool sectsrect_proc(SkRegion& a, SkRegion& b) {
58 static bool containsxy_proc(SkRegion& a, SkRegion& b) {
72 typedef bool (*Proc)(SkRegion& a, SkRegion& b);
74 SkRegion fA, fB;
97 fA.op(randrect(rand), SkRegion::kXOR_Op);
98 fB.op(randrect(rand), SkRegion::kXOR_Op);