/external/skia/bench/ |
D | RegionBench.cpp | 12 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 …]
|
/external/skqp/bench/ |
D | RegionBench.cpp | 12 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 …]
|
/external/skia/include/core/ |
D | SkRegion.h | 23 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 …]
|
/external/skqp/include/core/ |
D | SkRegion.h | 33 class SK_API SkRegion { 42 SkRegion(); 56 SkRegion(const SkRegion& region); 63 explicit SkRegion(const SkIRect& rect); 67 ~SkRegion(); 81 SkRegion& operator=(const SkRegion& region); 89 bool operator==(const SkRegion& other) const; 96 bool operator!=(const SkRegion& other) const { 112 bool set(const SkRegion& src) { in set() 126 void swap(SkRegion& other); [all …]
|
/external/skia/src/gpu/effects/ |
D | GrCoverageSetOpXP.cpp | 21 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 …]
|
D | GrCoverageSetOpXP.h | 32 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;
|
/external/skqp/docs/ |
D | SkRegion_Reference.bmh | 21 #Class SkRegion 27 SkRegion describes the set of pixels used to clip Canvas. SkRegion is compact, 29 of rectangles. SkRegion may reduce the current Canvas_Clip, or may be drawn as 30 one or more integer rectangles. SkRegion iterator returns the scan lines or 42 Iterator(const SkRegion& region); 44 void reset(const SkRegion& region); 48 const SkRegion* rgn(); 62 SkRegion::Iterator iter; 63 SkRegion region; 73 #SeeAlso reset SkRegion [all …]
|
/external/skqp/src/gpu/effects/ |
D | GrCoverageSetOpXP.cpp | 21 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 …]
|
/external/skqp/site/user/api/ |
D | SkRegion_Reference.md | 1 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 …]
|
/external/skia/tests/ |
D | RegionTest.cpp | 14 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 …]
|
/external/skqp/tests/ |
D | RegionTest.cpp | 14 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 …]
|
/external/skia/src/core/ |
D | SkRasterClip.h | 25 inline void applyClipRestriction(SkRegion::Op op, SkIRect* bounds) { in applyClipRestriction() 26 if (op >= SkRegion::kUnion_Op && fClipRestrictionRect in applyClipRestriction() 37 inline void applyOpParams(SkRegion::Op op, ClipAA aa, IsRect rect) { in applyOpParams() 39 fIsRect &= (op == SkRegion::kIntersect_Op && (bool) rect); in applyOpParams() 61 void opRect(const SkRect&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA); 62 void opRRect(const SkRRect&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA); 63 void opPath(const SkPath&, const SkMatrix&, const SkIRect& limit, SkRegion::Op, bool isAA); 64 void opRegion(const SkRegion&, SkRegion::Op); 65 void opIRect(const SkIRect&, SkRegion::Op); 81 SkRasterClip(const SkRegion&); [all …]
|
D | SkRasterClip.cpp | 18 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 …]
|
D | SkRegion.cpp | 91 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 …]
|
D | SkRegion_path.cpp | 38 … 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 …]
|
D | SkRegionPriv.h | 20 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 …]
|
D | SkScan.h | 17 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 …]
|
/external/skqp/src/core/ |
D | SkRasterClip.h | 21 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 …]
|
D | SkRasterClip.cpp | 18 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 …]
|
D | SkRegion.cpp | 92 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 …]
|
D | SkRegion_path.cpp | 38 … 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 …]
|
D | SkRegionPriv.h | 20 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 …]
|
D | SkScan.h | 18 class SkRegion; variable 42 typedef void (*HairRgnProc)(const SkPoint[], int count, const SkRegion*, SkBlitter*); 74 static void FillPath(const SkPath&, const SkRegion& clip, SkBlitter*); 82 friend class SkRegion; variable 84 static void FillIRect(const SkIRect&, const SkRegion* clip, SkBlitter*); 85 static void FillXRect(const SkXRect&, const SkRegion* clip, SkBlitter*); 86 static void FillRect(const SkRect&, const SkRegion* clip, SkBlitter*); 87 static void AntiFillRect(const SkRect&, const SkRegion* clip, SkBlitter*); 88 static void AntiFillXRect(const SkXRect&, const SkRegion*, SkBlitter*); 89 static void AntiFillPath(const SkPath&, const SkRegion& clip, SkBlitter*, [all …]
|
/external/skia/docs/examples/ |
D | Region_Op.cpp | 8 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) {
|
/external/skqp/samplecode/ |
D | SampleRegion.cpp | 127 static void scale_rgn(SkRegion* dst, const SkRegion& src, float scale) { in scale_rgn() 128 SkRegion tmp; in scale_rgn() 129 SkRegion::Iterator iter(src); in scale_rgn() 134 tmp.op(r, SkRegion::kUnion_Op); in scale_rgn() 139 static void paint_rgn(SkCanvas* canvas, const SkRegion& rgn, in paint_rgn() 141 SkRegion scaled; in paint_rgn() 144 SkRegion::Iterator iter(rgn); in paint_rgn() 164 void build_base_rgn(SkRegion* rgn) { in build_base_rgn() 168 rgn->op(r, SkRegion::kUnion_Op); in build_base_rgn() 171 void build_rgn(SkRegion* rgn, SkRegion::Op op) { in build_rgn() [all …]
|