Home
last modified time | relevance | path

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

12345678910>>...17

/external/chromium_org/third_party/skia/src/core/
DSkRegion.cpp33 static SkRegion::RunType* skip_intervals(const SkRegion::RunType runs[]) {
38 SkASSERT(runs[1] < SkRegion::kRunTypeSentinel);
41 SkASSERT(SkRegion::kRunTypeSentinel == runs[0]);
45 return const_cast<SkRegion::RunType*>(runs);
48 bool SkRegion::RunsAreARect(const SkRegion::RunType runs[], int count, in RunsAreARect()
72 SkRegion::SkRegion() { in SkRegion() function in SkRegion
77 SkRegion::SkRegion(const SkRegion& src) { in SkRegion() function in SkRegion
82 SkRegion::SkRegion(const SkIRect& rect) { in SkRegion() function in SkRegion
87 SkRegion::~SkRegion() { in ~SkRegion()
91 void SkRegion::freeRuns() { in freeRuns()
[all …]
DSkRegionPriv.h17 SkASSERT(((value) == SkRegion::kRunTypeSentinel) == isSentinel)
25 static int compute_intervalcount(const SkRegion::RunType runs[]) { in compute_intervalcount()
26 const SkRegion::RunType* curr = runs; in compute_intervalcount()
27 while (*curr < SkRegion::kRunTypeSentinel) { in compute_intervalcount()
29 SkASSERT(curr[1] < SkRegion::kRunTypeSentinel); in compute_intervalcount()
36 struct SkRegion::RunHead {
66 SkASSERT(count >= SkRegion::kRectRegionRuns); in Alloc()
87 SkRegion::RunType* writable_runs() { in writable_runs()
89 return (SkRegion::RunType*)(this + 1); in writable_runs()
92 const SkRegion::RunType* readonly_runs() const { in readonly_runs()
[all …]
DSkRasterClip.cpp82 SkRegion::Op op; in setConservativeRect()
84 op = SkRegion::kDifference_Op; in setConservativeRect()
86 op = SkRegion::kIntersect_Op; in setConservativeRect()
101 static MutateResult mutate_conservative_op(SkRegion::Op* op, bool inverseFilled) { in mutate_conservative_op()
104 case SkRegion::kIntersect_Op: in mutate_conservative_op()
105 case SkRegion::kDifference_Op: in mutate_conservative_op()
109 case SkRegion::kUnion_Op: in mutate_conservative_op()
110 case SkRegion::kReplace_Op: in mutate_conservative_op()
111 case SkRegion::kReverseDifference_Op: in mutate_conservative_op()
112 case SkRegion::kXOR_Op: { in mutate_conservative_op()
[all …]
DSkRegion_path.cpp35 … fCurrScanline->fXCount = (SkRegion::RunType)((int)(fCurrXPtr - fCurrScanline->firstX())); in done()
44 void copyToRgn(SkRegion::RunType runs[]) const;
77 SkRegion::RunType fLastY;
78 SkRegion::RunType fXCount;
80 SkRegion::RunType* firstX() const { return (SkRegion::RunType*)(this + 1); } in firstX()
83 return (Scanline*)((SkRegion::RunType*)(this + 1) + fXCount + 1); in nextScanline()
86 SkRegion::RunType* fStorage;
90 SkRegion::RunType* fCurrXPtr;
91 SkRegion::RunType fTop; // first Y value
143 int64_t size = sk_64_mul(fStorageCount, sizeof(SkRegion::RunType)); in init()
[all …]
DSkRasterClip.h25 const SkRegion& bwRgn() const { SkASSERT(fIsBW); return fBW; } in bwRgn()
44 bool op(const SkIRect&, SkRegion::Op);
45 bool op(const SkRegion&, SkRegion::Op);
46 bool op(const SkRect&, const SkISize&, SkRegion::Op, bool doAA);
47 bool op(const SkPath&, const SkISize&, SkRegion::Op, bool doAA);
69 const SkRegion& forceGetBW();
78 SkRegion fBW;
110 bool setPath(const SkPath& path, const SkRegion& clip, bool doAA);
112 bool op(const SkRasterClip&, SkRegion::Op);
158 const SkRegion& getRgn() const { in getRgn()
[all …]
DSkScan.h16 class SkRegion; variable
55 friend class SkRegion; variable
57 static void FillIRect(const SkIRect&, const SkRegion* clip, SkBlitter*);
58 static void FillXRect(const SkXRect&, const SkRegion* clip, SkBlitter*);
59 static void FillRect(const SkRect&, const SkRegion* clip, SkBlitter*);
60 static void AntiFillRect(const SkRect&, const SkRegion* clip, SkBlitter*);
61 static void AntiFillXRect(const SkXRect&, const SkRegion*, SkBlitter*);
62 static void FillPath(const SkPath&, const SkRegion& clip, SkBlitter*);
63 static void AntiFillPath(const SkPath&, const SkRegion& clip, SkBlitter*,
65 static void FillTriangle(const SkPoint pts[], const SkRegion*, SkBlitter*);
[all …]
/external/skia/src/core/
DSkRegion.cpp33 static SkRegion::RunType* skip_intervals(const SkRegion::RunType runs[]) {
38 SkASSERT(runs[1] < SkRegion::kRunTypeSentinel);
41 SkASSERT(SkRegion::kRunTypeSentinel == runs[0]);
45 return const_cast<SkRegion::RunType*>(runs);
48 bool SkRegion::RunsAreARect(const SkRegion::RunType runs[], int count, in RunsAreARect()
72 SkRegion::SkRegion() { in SkRegion() function in SkRegion
77 SkRegion::SkRegion(const SkRegion& src) { in SkRegion() function in SkRegion
82 SkRegion::SkRegion(const SkIRect& rect) { in SkRegion() function in SkRegion
87 SkRegion::~SkRegion() { in ~SkRegion()
91 void SkRegion::freeRuns() { in freeRuns()
[all …]
DSkRegionPriv.h17 SkASSERT(((value) == SkRegion::kRunTypeSentinel) == isSentinel)
25 static int compute_intervalcount(const SkRegion::RunType runs[]) { in compute_intervalcount()
26 const SkRegion::RunType* curr = runs; in compute_intervalcount()
27 while (*curr < SkRegion::kRunTypeSentinel) { in compute_intervalcount()
29 SkASSERT(curr[1] < SkRegion::kRunTypeSentinel); in compute_intervalcount()
36 struct SkRegion::RunHead {
66 SkASSERT(count >= SkRegion::kRectRegionRuns); in Alloc()
90 SkRegion::RunType* writable_runs() { in writable_runs()
92 return (SkRegion::RunType*)(this + 1); in writable_runs()
95 const SkRegion::RunType* readonly_runs() const { in readonly_runs()
[all …]
DSkRegion_path.cpp35 … fCurrScanline->fXCount = (SkRegion::RunType)((int)(fCurrXPtr - fCurrScanline->firstX())); in done()
44 void copyToRgn(SkRegion::RunType runs[]) const;
77 SkRegion::RunType fLastY;
78 SkRegion::RunType fXCount;
80 SkRegion::RunType* firstX() const { return (SkRegion::RunType*)(this + 1); } in firstX()
83 return (Scanline*)((SkRegion::RunType*)(this + 1) + fXCount + 1); in nextScanline()
86 SkRegion::RunType* fStorage;
90 SkRegion::RunType* fCurrXPtr;
91 SkRegion::RunType fTop; // first Y value
143 int64_t size = sk_64_mul(fStorageCount, sizeof(SkRegion::RunType)); in init()
[all …]
DSkRasterClip.h23 const SkRegion& bwRgn() const { SkASSERT(fIsBW); return fBW; } in bwRgn()
42 bool setPath(const SkPath& path, const SkRegion& clip, bool doAA);
45 bool op(const SkIRect&, SkRegion::Op);
46 bool op(const SkRegion&, SkRegion::Op);
47 bool op(const SkRasterClip&, SkRegion::Op);
48 bool op(const SkRect&, SkRegion::Op, bool doAA);
71 const SkRegion& forceGetBW();
80 SkRegion fBW;
146 const SkRegion& getRgn() const { in getRgn()
156 SkRegion fBWRgn;
[all …]
/external/skia/include/core/
DSkRegion.h22 #define SkRegion_gEmptyRunHeadPtr ((SkRegion::RunHead*)-1)
30 class SK_API SkRegion {
37 SkRegion();
38 SkRegion(const SkRegion&);
39 explicit SkRegion(const SkIRect&);
40 ~SkRegion();
42 SkRegion& operator=(const SkRegion&);
48 bool operator==(const SkRegion& other) const;
53 bool operator!=(const SkRegion& other) const {
61 bool set(const SkRegion& src) { in set()
[all …]
/external/chromium_org/third_party/skia/include/core/
DSkRegion.h22 #define SkRegion_gEmptyRunHeadPtr ((SkRegion::RunHead*)-1)
30 class SK_API SkRegion {
37 SkRegion();
38 SkRegion(const SkRegion&);
39 explicit SkRegion(const SkIRect&);
40 ~SkRegion();
42 SkRegion& operator=(const SkRegion&);
48 bool operator==(const SkRegion& other) const;
53 bool operator!=(const SkRegion& other) const {
61 bool set(const SkRegion& src) { in set()
[all …]
/external/skia/bench/
DRegionBench.cpp13 static bool union_proc(SkRegion& a, SkRegion& b) { in union_proc()
14 SkRegion result; in union_proc()
15 return result.op(a, b, SkRegion::kUnion_Op); in union_proc()
18 static bool sect_proc(SkRegion& a, SkRegion& b) { in sect_proc()
19 SkRegion result; in sect_proc()
20 return result.op(a, b, SkRegion::kIntersect_Op); in sect_proc()
23 static bool diff_proc(SkRegion& a, SkRegion& b) { in diff_proc()
24 SkRegion result; in diff_proc()
25 return result.op(a, b, SkRegion::kDifference_Op); in diff_proc()
28 static bool diffrect_proc(SkRegion& a, SkRegion& b) { in diffrect_proc()
[all …]
/external/chromium_org/third_party/skia/bench/
DRegionBench.cpp13 static bool union_proc(SkRegion& a, SkRegion& b) { in union_proc()
14 SkRegion result; in union_proc()
15 return result.op(a, b, SkRegion::kUnion_Op); in union_proc()
18 static bool sect_proc(SkRegion& a, SkRegion& b) { in sect_proc()
19 SkRegion result; in sect_proc()
20 return result.op(a, b, SkRegion::kIntersect_Op); in sect_proc()
23 static bool diff_proc(SkRegion& a, SkRegion& b) { in diff_proc()
24 SkRegion result; in diff_proc()
25 return result.op(a, b, SkRegion::kDifference_Op); in diff_proc()
28 static bool diffrect_proc(SkRegion& a, SkRegion& b) { in diffrect_proc()
[all …]
/external/chromium_org/ui/gfx/
Dpath_aura.cc12 SkRegion* Path::CreateNativeRegion() const { in CreateNativeRegion()
17 SkRegion clip_region; in CreateNativeRegion()
20 SkRegion* region = new SkRegion; in CreateNativeRegion()
27 SkRegion* new_region = new SkRegion; in IntersectRegions()
28 new_region->op(*r1, *r2, SkRegion::kIntersect_Op); in IntersectRegions()
34 SkRegion* new_region = new SkRegion; in CombineRegions()
35 new_region->op(*r1, *r2, SkRegion::kUnion_Op); in CombineRegions()
41 SkRegion* new_region = new SkRegion; in SubtractRegion()
42 new_region->op(*r1, *r2, SkRegion::kDifference_Op); in SubtractRegion()
/external/chromium_org/third_party/skia/tests/
DRegionTest.cpp12 static void Union(SkRegion* rgn, const SkIRect& rect) { in Union()
13 rgn->op(rect, SkRegion::kUnion_Op); in Union()
23 SkRegion r; in test_fromchrome()
65 SkRegion container; in test_fromchrome()
72 SkRegion rgn; in test_fromchrome()
80 SkRegion valid(SkIRect::MakeWH(10, 10)); in test_empties()
81 SkRegion empty, empty2; in test_empties()
109 static void randRgn(SkRandom& rand, SkRegion* rgn, int n) { in randRgn()
112 rgn->op(randRect(rand), SkRegion::kUnion_Op); in randRgn()
116 static bool slow_contains(const SkRegion& outer, const SkRegion& inner) { in slow_contains()
[all …]
DClipStackTest.cpp33 s.clipDevPath(p, SkRegion::kIntersect_Op, doAA); in test_assign_and_comparison()
39 s.clipDevRect(r, SkRegion::kIntersect_Op, doAA); in test_assign_and_comparison()
41 s.clipDevRect(r, SkRegion::kIntersect_Op, doAA); in test_assign_and_comparison()
47 s.clipDevRect(r, SkRegion::kUnion_Op, doAA); in test_assign_and_comparison()
62 s.clipDevRect(r, SkRegion::kUnion_Op, doAA); in test_assign_and_comparison()
71 s.clipDevRect(r, SkRegion::kIntersect_Op, doAA); in test_assign_and_comparison()
79 s.clipDevPath(rp, SkRegion::kUnion_Op, doAA); in test_assign_and_comparison()
89 s.clipDevRect(r, SkRegion::kUnion_Op, doAA); in test_assign_and_comparison()
112 s.clipDevPath(p, SkRegion::kIntersect_Op, doAA); in test_assign_and_comparison()
140 stack.clipDevRect(gRects[i], SkRegion::kUnion_Op, false); in test_iterators()
[all …]
/external/skia/tests/
DRegionTest.cpp12 static void Union(SkRegion* rgn, const SkIRect& rect) { in Union()
13 rgn->op(rect, SkRegion::kUnion_Op); in Union()
23 SkRegion r; in test_fromchrome()
65 SkRegion container; in test_fromchrome()
72 SkRegion rgn; in test_fromchrome()
80 SkRegion valid(SkIRect::MakeWH(10, 10)); in test_empties()
81 SkRegion empty, empty2; in test_empties()
109 static void randRgn(SkRandom& rand, SkRegion* rgn, int n) { in randRgn()
112 rgn->op(randRect(rand), SkRegion::kUnion_Op); in randRgn()
116 static bool slow_contains(const SkRegion& outer, const SkRegion& inner) { in slow_contains()
[all …]
DClipStackTest.cpp33 s.clipDevPath(p, SkRegion::kIntersect_Op, doAA); in test_assign_and_comparison()
39 s.clipDevRect(r, SkRegion::kIntersect_Op, doAA); in test_assign_and_comparison()
41 s.clipDevRect(r, SkRegion::kIntersect_Op, doAA); in test_assign_and_comparison()
47 s.clipDevRect(r, SkRegion::kUnion_Op, doAA); in test_assign_and_comparison()
62 s.clipDevRect(r, SkRegion::kUnion_Op, doAA); in test_assign_and_comparison()
71 s.clipDevRect(r, SkRegion::kIntersect_Op, doAA); in test_assign_and_comparison()
79 s.clipDevPath(rp, SkRegion::kUnion_Op, doAA); in test_assign_and_comparison()
89 s.clipDevRect(r, SkRegion::kUnion_Op, doAA); in test_assign_and_comparison()
112 s.clipDevPath(p, SkRegion::kIntersect_Op, doAA); in test_assign_and_comparison()
140 stack.clipDevRect(gRects[i], SkRegion::kUnion_Op, false); in test_iterators()
[all …]
/external/chromium_org/third_party/skia/samplecode/
DSampleRegion.cpp124 static void make_rgn(SkRegion* rgn, int left, int top, int right, int bottom, in make_rgn()
133 static void test_union_bug_1505668(SkRegion* ra, SkRegion* rb, SkRegion* rc) { in test_union_bug_1505668()
159 rc->op(*ra, *rb, SkRegion::kUnion_Op); in test_union_bug_1505668()
170 static void scale_rgn(SkRegion* dst, const SkRegion& src, float scale) { in scale_rgn()
171 SkRegion tmp; in scale_rgn()
172 SkRegion::Iterator iter(src); in scale_rgn()
177 tmp.op(r, SkRegion::kUnion_Op); in scale_rgn()
182 static void paint_rgn(SkCanvas* canvas, const SkRegion& rgn, in paint_rgn()
184 SkRegion scaled; in paint_rgn()
187 SkRegion::Iterator iter(rgn); in paint_rgn()
[all …]
/external/skia/samplecode/
DSampleRegion.cpp124 static void make_rgn(SkRegion* rgn, int left, int top, int right, int bottom, in make_rgn()
133 static void test_union_bug_1505668(SkRegion* ra, SkRegion* rb, SkRegion* rc) { in test_union_bug_1505668()
159 rc->op(*ra, *rb, SkRegion::kUnion_Op); in test_union_bug_1505668()
170 static void scale_rgn(SkRegion* dst, const SkRegion& src, float scale) { in scale_rgn()
171 SkRegion tmp; in scale_rgn()
172 SkRegion::Iterator iter(src); in scale_rgn()
177 tmp.op(r, SkRegion::kUnion_Op); in scale_rgn()
182 static void paint_rgn(SkCanvas* canvas, const SkRegion& rgn, in paint_rgn()
184 SkRegion scaled; in paint_rgn()
187 SkRegion::Iterator iter(rgn); in paint_rgn()
[all …]
/external/chromium_org/third_party/skia/include/images/
DSkPageFlipper.h35 const SkRegion& dirtyRgn() const { return *fDirty1; } in dirtyRgn()
39 void inval(const SkRegion&);
51 const SkRegion& update(SkRegion* copyBits);
54 SkRegion* fDirty0;
55 SkRegion* fDirty1;
56 SkRegion fDirty0Storage;
57 SkRegion fDirty1Storage;
/external/skia/include/images/
DSkPageFlipper.h35 const SkRegion& dirtyRgn() const { return *fDirty1; } in dirtyRgn()
39 void inval(const SkRegion&);
51 const SkRegion& update(SkRegion* copyBits);
54 SkRegion* fDirty0;
55 SkRegion* fDirty1;
56 SkRegion fDirty0Storage;
57 SkRegion fDirty1Storage;
/external/chromium_org/third_party/skia/src/gpu/
DGrReducedClip.cpp93 SkNEW_INSERT_AT_LLIST_HEAD(result, Element, (isectRect, SkRegion::kReplace_Op, doAA)); in ReduceClipStack()
185 case SkRegion::kDifference_Op: in reduced_stack_walker()
207 case SkRegion::kIntersect_Op: in reduced_stack_walker()
230 case SkRegion::kUnion_Op: in reduced_stack_walker()
253 case SkRegion::kXOR_Op: in reduced_stack_walker()
275 case SkRegion::kReverseDifference_Op: in reduced_stack_walker()
299 case SkRegion::kReplace_Op: in reduced_stack_walker()
338 SkASSERT(SkRegion::kXOR_Op == element->getOp() || in reduced_stack_walker()
339 SkRegion::kReverseDifference_Op == element->getOp()); in reduced_stack_walker()
342 (queryBounds, SkRegion::kReverseDifference_Op, false)); in reduced_stack_walker()
[all …]
/external/skia/src/gpu/
DGrReducedClip.cpp93 SkNEW_INSERT_AT_LLIST_HEAD(result, Element, (isectRect, SkRegion::kReplace_Op, doAA)); in ReduceClipStack()
185 case SkRegion::kDifference_Op: in reduced_stack_walker()
207 case SkRegion::kIntersect_Op: in reduced_stack_walker()
230 case SkRegion::kUnion_Op: in reduced_stack_walker()
253 case SkRegion::kXOR_Op: in reduced_stack_walker()
275 case SkRegion::kReverseDifference_Op: in reduced_stack_walker()
299 case SkRegion::kReplace_Op: in reduced_stack_walker()
338 SkASSERT(SkRegion::kXOR_Op == element->getOp() || in reduced_stack_walker()
339 SkRegion::kReverseDifference_Op == element->getOp()); in reduced_stack_walker()
342 (queryBounds, SkRegion::kReverseDifference_Op, false)); in reduced_stack_walker()
[all …]

12345678910>>...17