Home
last modified time | relevance | path

Searched refs:SkRegion (Results 1 – 25 of 374) sorted by relevance

12345678910>>...15

/third_party/flutter/skia/bench/
DRegionBench.cpp12 static bool union_proc(SkRegion& a, SkRegion& b) { in union_proc()
13 SkRegion result; in union_proc()
14 return result.op(a, b, SkRegion::kUnion_Op); in union_proc()
17 static bool sect_proc(SkRegion& a, SkRegion& b) { in sect_proc()
18 SkRegion result; in sect_proc()
19 return result.op(a, b, SkRegion::kIntersect_Op); in sect_proc()
22 static bool diff_proc(SkRegion& a, SkRegion& b) { in diff_proc()
23 SkRegion result; in diff_proc()
24 return result.op(a, b, SkRegion::kDifference_Op); in diff_proc()
27 static bool diffrect_proc(SkRegion& a, SkRegion& b) { in diffrect_proc()
[all …]
DRegionContainBench.cpp13 static bool sect_proc(SkRegion& a, SkRegion& b) { in sect_proc()
14 SkRegion result; in sect_proc()
15 return result.op(a, b, SkRegion::kIntersect_Op); in sect_proc()
20 typedef bool (*Proc)(SkRegion& a, SkRegion& b);
21 SkRegion fA, fB;
42 fA.op(randrect(rand, i), SkRegion::kXOR_Op); in RegionContainBench()
/third_party/skia/bench/
DRegionBench.cpp12 static bool union_proc(SkRegion& a, SkRegion& b) { in union_proc()
13 SkRegion result; in union_proc()
14 return result.op(a, b, SkRegion::kUnion_Op); in union_proc()
17 static bool sect_proc(SkRegion& a, SkRegion& b) { in sect_proc()
18 SkRegion result; in sect_proc()
19 return result.op(a, b, SkRegion::kIntersect_Op); in sect_proc()
22 static bool diff_proc(SkRegion& a, SkRegion& b) { in diff_proc()
23 SkRegion result; in diff_proc()
24 return result.op(a, b, SkRegion::kDifference_Op); in diff_proc()
27 static bool diffrect_proc(SkRegion& a, SkRegion& b) { in diffrect_proc()
[all …]
DRegionContainBench.cpp13 static bool sect_proc(SkRegion& a, SkRegion& b) { in sect_proc()
14 SkRegion result; in sect_proc()
15 return result.op(a, b, SkRegion::kIntersect_Op); in sect_proc()
20 typedef bool (*Proc)(SkRegion& a, SkRegion& b);
21 SkRegion fA, fB;
42 fA.op(randrect(rand, i), SkRegion::kXOR_Op); in RegionContainBench()
/third_party/skia/include/core/
DSkRegion.h23 class SK_API SkRegion {
34 SkRegion();
50 SkRegion(const SkRegion& region);
59 explicit SkRegion(const SkIRect& rect);
65 ~SkRegion();
81 SkRegion& operator=(const SkRegion& region);
91 bool operator==(const SkRegion& other) const;
98 bool operator!=(const SkRegion& other) const {
114 bool set(const SkRegion& src) { in set()
130 void swap(SkRegion& other);
[all …]
/third_party/skia/src/gpu/effects/
DGrCoverageSetOpXP.cpp20 CoverageSetOpXP(SkRegion::Op regionOp, bool invertCoverage) in CoverageSetOpXP()
40 SkRegion::Op fRegionOp;
68 case SkRegion::kReplace_Op: in onGetBlendInfo()
72 case SkRegion::kIntersect_Op: in onGetBlendInfo()
76 case SkRegion::kUnion_Op: in onGetBlendInfo()
80 case SkRegion::kXOR_Op: in onGetBlendInfo()
84 case SkRegion::kDifference_Op: in onGetBlendInfo()
88 case SkRegion::kReverseDifference_Op: in onGetBlendInfo()
98 constexpr GrCoverageSetOpXPFactory::GrCoverageSetOpXPFactory(SkRegion::Op regionOp, in GrCoverageSetOpXPFactory()
102 const GrXPFactory* GrCoverageSetOpXPFactory::Get(SkRegion::Op regionOp, bool invertCoverage) { in Get()
[all …]
DGrCoverageSetOpXP.h32 static const GrXPFactory* Get(SkRegion::Op regionOp, bool invertCoverage = false);
35 constexpr GrCoverageSetOpXPFactory(SkRegion::Op regionOp, bool invertCoverage);
48 case SkRegion::kReplace_Op: in analysisProperties()
51 case SkRegion::kUnion_Op: in analysisProperties()
52 case SkRegion::kDifference_Op: in analysisProperties()
56 case SkRegion::kIntersect_Op: in analysisProperties()
57 case SkRegion::kXOR_Op: in analysisProperties()
58 case SkRegion::kReverseDifference_Op: in analysisProperties()
67 SkRegion::Op fRegionOp;
/third_party/flutter/skia/include/core/
DSkRegion.h23 class SK_API SkRegion {
32 SkRegion();
46 SkRegion(const SkRegion& region);
53 explicit SkRegion(const SkIRect& rect);
57 ~SkRegion();
71 SkRegion& operator=(const SkRegion& region);
79 bool operator==(const SkRegion& other) const;
86 bool operator!=(const SkRegion& other) const {
102 bool set(const SkRegion& src) { in set()
116 void swap(SkRegion& other);
[all …]
/third_party/flutter/skia/src/gpu/effects/
DGrCoverageSetOpXP.cpp21 CoverageSetOpXP(SkRegion::Op regionOp, bool invertCoverage) in CoverageSetOpXP()
44 SkRegion::Op fRegionOp;
95 case SkRegion::kReplace_Op: in onGetBlendInfo()
99 case SkRegion::kIntersect_Op: in onGetBlendInfo()
103 case SkRegion::kUnion_Op: in onGetBlendInfo()
107 case SkRegion::kXOR_Op: in onGetBlendInfo()
111 case SkRegion::kDifference_Op: in onGetBlendInfo()
115 case SkRegion::kReverseDifference_Op: in onGetBlendInfo()
125 constexpr GrCoverageSetOpXPFactory::GrCoverageSetOpXPFactory(SkRegion::Op regionOp, in GrCoverageSetOpXPFactory()
129 const GrXPFactory* GrCoverageSetOpXPFactory::Get(SkRegion::Op regionOp, bool invertCoverage) { in Get()
[all …]
/third_party/flutter/skia/site/user/api/
DSkRegion_Reference.md1 SkRegion Reference
14 <a name='SkRegion'></a>
19 class <a href='SkRegion_Reference#SkRegion'>SkRegion</a> {
21 <a href='#SkRegion_empty_constructor'>SkRegion()</a>;
22 …<a href='#SkRegion_copy_const_SkRegion'>SkRegion</a>(const <a href='SkRegion_Reference#SkRegion'>S…
23 …explicit <a href='#SkRegion_copy_const_SkIRect'>SkRegion</a>(const <a href='SkIRect_Reference#SkIR…
24 <a href='#SkRegion_destructor'>~SkRegion()</a>;
25 …ion_Reference#SkRegion'>SkRegion</a>& <a href='#SkRegion_copy_operator'>operator=</a>(const <a hre…
26 …_equal1_operator'>operator==</a>(const <a href='SkRegion_Reference#SkRegion'>SkRegion</a>& other) …
27 …tequal1_operator'>operator!=</a>(const <a href='SkRegion_Reference#SkRegion'>SkRegion</a>& other) …
[all …]
/third_party/flutter/skia/tests/
DRegionTest.cpp14 static void Union(SkRegion* rgn, const SkIRect& rect) { in Union()
15 rgn->op(rect, SkRegion::kUnion_Op); in Union()
25 SkRegion r; in test_fromchrome()
67 SkRegion container; in test_fromchrome()
74 SkRegion rgn; in test_fromchrome()
82 SkRegion valid(SkIRect::MakeWH(10, 10)); in test_empties()
83 SkRegion empty, empty2; in test_empties()
100 SkRegion openClip; in test_empties()
118 static void randRgn(SkRandom& rand, SkRegion* rgn, int n) { in randRgn()
121 rgn->op(randRect(rand), SkRegion::kUnion_Op); in randRgn()
[all …]
/third_party/skia/tests/
DRegionTest.cpp14 static void Union(SkRegion* rgn, const SkIRect& rect) { in Union()
15 rgn->op(rect, SkRegion::kUnion_Op); in Union()
25 SkRegion r; in test_fromchrome()
67 SkRegion container; in test_fromchrome()
74 SkRegion rgn; in test_fromchrome()
82 SkRegion valid(SkIRect::MakeWH(10, 10)); in test_empties()
83 SkRegion empty, empty2; in test_empties()
100 SkRegion openClip; in test_empties()
118 static void randRgn(SkRandom& rand, SkRegion* rgn, int n) { in randRgn()
121 rgn->op(randRect(rand), SkRegion::kUnion_Op); in randRgn()
[all …]
/third_party/flutter/skia/src/core/
DSkRasterClip.h21 inline void applyClipRestriction(SkRegion::Op op, SkIRect* bounds) { in applyClipRestriction()
22 if (op >= SkRegion::kUnion_Op && fClipRestrictionRect in applyClipRestriction()
43 void opRect(const SkRect&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA);
44 void opRRect(const SkRRect&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA);
45 void opPath(const SkPath&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA);
46 void opRegion(const SkRegion&, SkRegion::Op);
47 void opIRect(const SkIRect&, SkRegion::Op);
63 SkRasterClip(const SkRegion&);
76 const SkRegion& bwRgn() const { SkASSERT(fIsBW); return fBW; } in bwRgn()
95 bool op(const SkIRect&, SkRegion::Op);
[all …]
DSkRasterClip.cpp18 static MutateResult mutate_conservative_op(SkRegion::Op* op, bool inverseFilled) { in mutate_conservative_op()
21 case SkRegion::kIntersect_Op: in mutate_conservative_op()
22 case SkRegion::kDifference_Op: in mutate_conservative_op()
26 case SkRegion::kUnion_Op: in mutate_conservative_op()
27 case SkRegion::kReplace_Op: in mutate_conservative_op()
28 case SkRegion::kReverseDifference_Op: in mutate_conservative_op()
29 case SkRegion::kXOR_Op: { in mutate_conservative_op()
33 *op = SkRegion::kReplace_Op; in mutate_conservative_op()
40 case SkRegion::kIntersect_Op: in mutate_conservative_op()
41 case SkRegion::kUnion_Op: in mutate_conservative_op()
[all …]
DSkRegion.cpp92 bool SkRegion::RunsAreARect(const SkRegion::RunType runs[], int count, in RunsAreARect()
116 SkRegion::SkRegion() { in SkRegion() function in SkRegion
121 SkRegion::SkRegion(const SkRegion& src) { in SkRegion() function in SkRegion
126 SkRegion::SkRegion(const SkIRect& rect) { in SkRegion() function in SkRegion
131 SkRegion::~SkRegion() { in ~SkRegion()
135 void SkRegion::freeRuns() { in freeRuns()
144 void SkRegion::allocateRuns(int count, int ySpanCount, int intervalCount) { in allocateRuns()
148 void SkRegion::allocateRuns(int count) { in allocateRuns()
152 void SkRegion::allocateRuns(const RunHead& head) { in allocateRuns()
158 SkRegion& SkRegion::operator=(const SkRegion& src) { in operator =()
[all …]
DSkRegion_path.cpp38 … fCurrScanline->fXCount = (SkRegion::RunType)((int)(fCurrXPtr - fCurrScanline->firstX())); in done()
47 void copyToRgn(SkRegion::RunType runs[]) const;
83 SkRegion::RunType fLastY;
84 SkRegion::RunType fXCount;
86 SkRegion::RunType* firstX() const { return (SkRegion::RunType*)(this + 1); } in firstX()
89 return (Scanline*)((SkRegion::RunType*)(this + 1) + fXCount + 1); in nextScanline()
92 SkRegion::RunType* fStorage;
96 SkRegion::RunType* fCurrXPtr;
97 SkRegion::RunType fTop; // first Y value
151 fStorage = (SkRegion::RunType*)sk_malloc_canfail(fStorageCount, sizeof(SkRegion::RunType)); in init()
[all …]
DSkRegionPriv.h20 typedef SkRegion::RunType RunType;
21 typedef SkRegion::RunHead RunHead;
26 static void VisitSpans(const SkRegion& rgn, const std::function<void(const SkIRect&)>&);
29 static void Validate(const SkRegion& rgn);
57 struct SkRegion::RunHead {
84 if (count < SkRegion::kRectRegionRuns) { in Alloc()
114 SkRegion::RunType* writable_runs() { in writable_runs()
116 return (SkRegion::RunType*)(this + 1); in writable_runs()
119 const SkRegion::RunType* readonly_runs() const { in readonly_runs()
120 return (const SkRegion::RunType*)(this + 1); in readonly_runs()
[all …]
DSkScan.h17 class SkRegion; variable
39 typedef void (*HairRgnProc)(const SkPoint[], int count, const SkRegion*, SkBlitter*);
71 static void FillPath(const SkPath&, const SkRegion& clip, SkBlitter*);
75 friend class SkRegion; variable
77 static void FillIRect(const SkIRect&, const SkRegion* clip, SkBlitter*);
78 static void FillXRect(const SkXRect&, const SkRegion* clip, SkBlitter*);
79 static void FillRect(const SkRect&, const SkRegion* clip, SkBlitter*);
80 static void AntiFillRect(const SkRect&, const SkRegion* clip, SkBlitter*);
81 static void AntiFillXRect(const SkXRect&, const SkRegion*, SkBlitter*);
82 static void AntiFillPath(const SkPath&, const SkRegion& clip, SkBlitter*, bool forceRLE);
[all …]
/third_party/skia/src/core/
DSkRegion.cpp91 bool SkRegion::RunsAreARect(const SkRegion::RunType runs[], int count, in RunsAreARect()
115 SkRegion::SkRegion() { in SkRegion() function in SkRegion
120 SkRegion::SkRegion(const SkRegion& src) { in SkRegion() function in SkRegion
125 SkRegion::SkRegion(const SkIRect& rect) { in SkRegion() function in SkRegion
130 SkRegion::~SkRegion() { in ~SkRegion()
134 void SkRegion::freeRuns() { in freeRuns()
143 void SkRegion::allocateRuns(int count, int ySpanCount, int intervalCount) { in allocateRuns()
147 void SkRegion::allocateRuns(int count) { in allocateRuns()
151 void SkRegion::allocateRuns(const RunHead& head) { in allocateRuns()
157 SkRegion& SkRegion::operator=(const SkRegion& src) { in operator =()
[all …]
DSkRegion_path.cpp38 … fCurrScanline->fXCount = (SkRegion::RunType)((int)(fCurrXPtr - fCurrScanline->firstX())); in done()
47 void copyToRgn(SkRegion::RunType runs[]) const;
83 SkRegion::RunType fLastY;
84 SkRegion::RunType fXCount;
86 SkRegion::RunType* firstX() const { return (SkRegion::RunType*)(this + 1); } in firstX()
89 return (Scanline*)((SkRegion::RunType*)(this + 1) + fXCount + 1); in nextScanline()
92 SkRegion::RunType* fStorage;
96 SkRegion::RunType* fCurrXPtr;
97 SkRegion::RunType fTop; // first Y value
151 fStorage = (SkRegion::RunType*)sk_malloc_canfail(fStorageCount, sizeof(SkRegion::RunType)); in init()
[all …]
DSkRegionPriv.h20 typedef SkRegion::RunType RunType;
21 typedef SkRegion::RunHead RunHead;
26 static void VisitSpans(const SkRegion& rgn, const std::function<void(const SkIRect&)>&);
29 static void Validate(const SkRegion& rgn);
57 struct SkRegion::RunHead {
84 if (count < SkRegion::kRectRegionRuns) { in Alloc()
114 SkRegion::RunType* writable_runs() { in writable_runs()
116 return (SkRegion::RunType*)(this + 1); in writable_runs()
119 const SkRegion::RunType* readonly_runs() const { in readonly_runs()
120 return (const SkRegion::RunType*)(this + 1); in readonly_runs()
[all …]
DSkScan.h17 class SkRegion; variable
39 typedef void (*HairRgnProc)(const SkPoint[], int count, const SkRegion*, SkBlitter*);
76 static void FillPath(const SkPath&, const SkRegion& clip, SkBlitter*);
80 friend class SkRegion; variable
82 static void FillIRect(const SkIRect&, const SkRegion* clip, SkBlitter*);
83 static void FillXRect(const SkXRect&, const SkRegion* clip, SkBlitter*);
84 static void FillRect(const SkRect&, const SkRegion* clip, SkBlitter*);
85 static void AntiFillRect(const SkRect&, const SkRegion* clip, SkBlitter*);
86 static void AntiFillXRect(const SkXRect&, const SkRegion*, SkBlitter*);
87 static void AntiFillPath(const SkPath&, const SkRegion& clip, SkBlitter*, bool forceRLE);
[all …]
/third_party/skia/docs/examples/
DRegion_Op.cpp8 SkRegion operand({35, 35, 85, 85});
12 for (auto op : { SkRegion::kDifference_Op, SkRegion::kIntersect_Op, SkRegion::kUnion_Op,
13 SkRegion::kXOR_Op, SkRegion::kReverseDifference_Op, SkRegion::kReplace_Op } ) {
14 SkRegion target({10, 10, 60, 60});
19 if (SkRegion::kUnion_Op == op) {
/third_party/flutter/skia/docs/examples/
DRegion_Op.cpp8 SkRegion operand({35, 35, 85, 85});
12 for (auto op : { SkRegion::kDifference_Op, SkRegion::kIntersect_Op, SkRegion::kUnion_Op,
13 SkRegion::kXOR_Op, SkRegion::kReverseDifference_Op, SkRegion::kReplace_Op } ) {
14 SkRegion target({10, 10, 60, 60});
19 if (SkRegion::kUnion_Op == op) {
/third_party/flutter/skia/samplecode/
DSampleRegion.cpp128 static void scale_rgn(SkRegion* dst, const SkRegion& src, float scale) { in scale_rgn()
129 SkRegion tmp; in scale_rgn()
130 SkRegion::Iterator iter(src); in scale_rgn()
135 tmp.op(r, SkRegion::kUnion_Op); in scale_rgn()
140 static void paint_rgn(SkCanvas* canvas, const SkRegion& rgn, in paint_rgn()
142 SkRegion scaled; in paint_rgn()
145 SkRegion::Iterator iter(rgn); in paint_rgn()
165 void build_base_rgn(SkRegion* rgn) { in build_base_rgn()
169 rgn->op(r, SkRegion::kUnion_Op); in build_base_rgn()
172 void build_rgn(SkRegion* rgn, SkRegion::Op op) { in build_rgn()
[all …]

12345678910>>...15