Home
last modified time | relevance | path

Searched refs:SkClipOp (Results 1 – 25 of 101) sorted by relevance

12345

/third_party/skia/tests/
DClipStackTest.cpp49 s.clipPath(p, SkMatrix::I(), SkClipOp::kIntersect, doAA); in test_assign_and_comparison()
55 s.clipRect(r, SkMatrix::I(), SkClipOp::kIntersect, doAA); in test_assign_and_comparison()
57 s.clipRect(r, SkMatrix::I(), SkClipOp::kIntersect, doAA); in test_assign_and_comparison()
63 s.clipRect(r, SkMatrix::I(), SkClipOp::kDifference, doAA); in test_assign_and_comparison()
78 s.clipRect(r, SkMatrix::I(), SkClipOp::kDifference, doAA); in test_assign_and_comparison()
87 s.clipRect(r, SkMatrix::I(), SkClipOp::kIntersect, doAA); in test_assign_and_comparison()
95 s.clipPath(rp, SkMatrix::I(), SkClipOp::kDifference, doAA); in test_assign_and_comparison()
105 s.clipRect(r, SkMatrix::I(), SkClipOp::kDifference, doAA); in test_assign_and_comparison()
127 s.clipPath(p, SkMatrix::I(), SkClipOp::kIntersect, doAA); in test_assign_and_comparison()
155 stack.clipRect(gRects[i], SkMatrix::I(), SkClipOp::kDifference, false); in test_iterators()
[all …]
DGrClipStackTest.cpp108 ElementsBuilder& intersect() { fOp = SkClipOp::kIntersect; return *this; } in intersect()
109 ElementsBuilder& difference() { fOp = SkClipOp::kDifference; return *this; } in difference()
116 ElementsBuilder& rect(const SkRect& rect, GrAA aa, SkClipOp op) { in rect()
119 ElementsBuilder& rect(const SkRect& rect, const SkMatrix& m, GrAA aa, SkClipOp op) { in rect()
127 ElementsBuilder& rrect(const SkRRect& rrect, GrAA aa, SkClipOp op) { in rrect()
130 ElementsBuilder& rrect(const SkRRect& rrect, const SkMatrix& m, GrAA aa, SkClipOp op) { in rrect()
138 ElementsBuilder& path(const SkPath& path, GrAA aa, SkClipOp op) { in path()
141 ElementsBuilder& path(const SkPath& path, const SkMatrix& m, GrAA aa, SkClipOp op) { in path()
160 SkClipOp fOp = SkClipOp::kIntersect;
249 bool intersect = (e.fOp == SkClipOp::kIntersect && !e.fShape.inverted()) || in getOptimalBounds()
[all …]
/third_party/skia/src/core/
DSkClipStack.h70 this->initCommon(0, SkClipOp::kIntersect, false); in Element()
76 Element(const SkRect& rect, const SkMatrix& m, SkClipOp op, bool doAA) { in Element()
80 Element(const SkRRect& rrect, const SkMatrix& m, SkClipOp op, bool doAA) { in Element()
84 Element(const SkPath& path, const SkMatrix& m, SkClipOp op, bool doAA) { in Element()
136 SkClipOp getOp() const { return fOp; } in getOp()
217 SkClipOp fOp;
245 this->initCommon(saveCount, SkClipOp::kIntersect, false); in Element()
249 Element(int saveCount, const SkRRect& rrect, const SkMatrix& m, SkClipOp op, bool doAA) { in Element()
253 Element(int saveCount, const SkRect& rect, const SkMatrix& m, SkClipOp op, bool doAA) { in Element()
257 Element(int saveCount, const SkPath& path, const SkMatrix& m, SkClipOp op, bool doAA) { in Element()
[all …]
DSkClipStack.cpp173 void SkClipStack::Element::initCommon(int saveCount, SkClipOp op, bool doAA) { in initCommon()
187 SkClipOp op, bool doAA) { in initRect()
203 SkClipOp op, bool doAA) { in initRRect()
221 SkClipOp op, bool doAA) { in initPath()
240 SkClipOp op, bool doAA) { in initAsPath()
251 this->initCommon(saveCount, SkClipOp::kIntersect, false); in initShader()
257 this->initCommon(saveCount, SkClipOp::kIntersect, doAA); in initReplaceRect()
307 bool SkClipStack::Element::canBeIntersectedInPlace(int saveCount, SkClipOp op) const { in canBeIntersectedInPlace()
309 (SkClipOp::kDifference == op || SkClipOp::kIntersect == op)) { in canBeIntersectedInPlace()
315 SkClipOp::kIntersect == op && in canBeIntersectedInPlace()
[all …]
DSkDevice.h161 void clipRect(const SkRect& rect, SkClipOp op, bool aa) { in clipRect()
164 void clipRRect(const SkRRect& rrect, SkClipOp op, bool aa) { in clipRRect()
167 void clipPath(const SkPath& path, SkClipOp op, bool aa) { in clipPath()
170 void clipShader(sk_sp<SkShader> sh, SkClipOp op) { in clipShader()
172 if (op == SkClipOp::kDifference) { in clipShader()
177 void clipRegion(const SkRegion& region, SkClipOp op) { in clipRegion()
214 virtual void onClipRect(const SkRect& rect, SkClipOp, bool aa) {} in onClipRect() argument
215 virtual void onClipRRect(const SkRRect& rrect, SkClipOp, bool aa) {} in onClipRRect() argument
216 virtual void onClipPath(const SkPath& path, SkClipOp, bool aa) {} in onClipPath() argument
218 virtual void onClipRegion(const SkRegion& deviceRgn, SkClipOp) {} in onClipRegion() argument
[all …]
DSkRasterClip.h60 bool op(const SkIRect&, SkClipOp);
61 bool op(const SkRegion&, SkClipOp);
62 bool op(const SkRect&, const SkMatrix& matrix, SkClipOp, bool doAA);
63 bool op(const SkRRect&, const SkMatrix& matrix, SkClipOp, bool doAA);
64 bool op(const SkPath&, const SkMatrix& matrix, SkClipOp, bool doAA);
124 bool op(const SkRasterClip&, SkClipOp);
DSkPictureRecord.h202 void onClipRect(const SkRect&, SkClipOp, ClipEdgeStyle) override;
203 void onClipRRect(const SkRRect&, SkClipOp, ClipEdgeStyle) override;
204 void onClipPath(const SkPath&, SkClipOp, ClipEdgeStyle) override;
205 void onClipShader(sk_sp<SkShader>, SkClipOp) override;
206 void onClipRegion(const SkRegion&, SkClipOp) override;
227 size_t recordClipRect(const SkRect& rect, SkClipOp op, bool doAA);
228 size_t recordClipRRect(const SkRRect& rrect, SkClipOp op, bool doAA);
229 size_t recordClipPath(int pathID, SkClipOp op, bool doAA);
230 size_t recordClipRegion(const SkRegion& region, SkClipOp op);
DSkClipStackDevice.h27 void onClipRect(const SkRect& rect, SkClipOp, bool aa) override;
28 void onClipRRect(const SkRRect& rrect, SkClipOp, bool aa) override;
29 void onClipPath(const SkPath& path, SkClipOp, bool aa) override;
31 void onClipRegion(const SkRegion& deviceRgn, SkClipOp) override;
DSkRecorder.h103 void onClipRect(const SkRect& rect, SkClipOp, ClipEdgeStyle) override;
104 void onClipRRect(const SkRRect& rrect, SkClipOp, ClipEdgeStyle) override;
105 void onClipPath(const SkPath& path, SkClipOp, ClipEdgeStyle) override;
106 void onClipShader(sk_sp<SkShader>, SkClipOp) override;
107 void onClipRegion(const SkRegion& deviceRgn, SkClipOp) override;
DSkRasterClip.cpp107 bool SkRasterClip::op(const SkIRect& rect, SkClipOp op) { in op()
118 bool SkRasterClip::op(const SkRegion& rgn, SkClipOp op) { in op()
144 bool SkRasterClip::op(const SkRect& localRect, const SkMatrix& matrix, SkClipOp op, bool doAA) { in op()
173 bool SkRasterClip::op(const SkRRect& rrect, const SkMatrix& matrix, SkClipOp op, bool doAA) { in op()
177 bool SkRasterClip::op(const SkPath& path, const SkMatrix& matrix, SkClipOp op, bool doAA) { in op()
185 if (this->isRect() && op == SkClipOp::kIntersect) { in op()
214 bool SkRasterClip::op(const SkRasterClip& clip, SkClipOp op) { in op()
DSkRasterClipStack.h53 void clipRect(const SkMatrix& ctm, const SkRect& rect, SkClipOp op, bool aa) { in clipRect()
58 void clipRRect(const SkMatrix& ctm, const SkRRect& rrect, SkClipOp op, bool aa) { in clipRRect()
63 void clipPath(const SkMatrix& ctm, const SkPath& path, SkClipOp op, bool aa) { in clipPath()
73 void clipRegion(const SkRegion& rgn, SkClipOp op) { in clipRegion()
/third_party/skia/experimental/xform/
DSkXform.h25 virtual void clipRect(const SkRect&, SkClipOp) = 0;
26 virtual void clipRRect(const SkRRect&, SkClipOp) = 0;
27 virtual void clipPath(const SkPath&, SkClipOp) = 0;
123 ClipXF(sk_sp<Xform> parent, const SkRect& r, SkClipOp op = SkClipOp::kIntersect)
129 void setRect(const SkRect& r, SkClipOp op = SkClipOp::kIntersect) {
139 SkClipOp fOp;
/third_party/skia/gm/
Dwindowrectangles.cpp58 SkClipOp op = element->getOp(); in coverClipStack()
74 canvas->clipRect({ 0, 0, 0, 0 }, SkClipOp::kIntersect, false); in coverClipStack()
87 SkClipOp::kDifference, false); in onDraw()
89 SkClipOp::kDifference, true); in onDraw()
91 SkMatrix::I(), SkClipOp::kDifference, true); in onDraw()
95 stack.clipRRect(nine, SkMatrix::I(), SkClipOp::kDifference, true); in onDraw()
100 stack.clipRRect(complx, SkMatrix::I(), SkClipOp::kDifference, false); in onDraw()
Dsimpleaaclip.cpp85 void buildRgn(SkAAClip* clip, SkClipOp op) { in buildRgn()
103 void drawRgnOped(SkCanvas* canvas, SkClipOp op, SkColor color) { in drawRgnOped()
115 void drawPathsOped(SkCanvas* canvas, SkClipOp op, SkColor color) { in drawPathsOped()
162 SkClipOp fOp; in onDraw()
164 {SK_ColorBLACK, "Difference", SkClipOp::kDifference}, in onDraw()
165 {SK_ColorRED, "Intersect", SkClipOp::kIntersect}, in onDraw()
Dcomplexclip4.cpp53 canvas->clipRect(clipRect, SkClipOp::kIntersect, aa); in emulateClipRectReplace()
60 canvas->clipRRect(clipRRect, SkClipOp::kIntersect, aa); in emulateClipRRectReplace()
67 canvas->clipPath(path, SkClipOp::kIntersect, aa); in emulateClipPathReplace()
113 SkClipOp::kIntersect, fDoAAClip); in onDraw()
Dcomplexclip.cpp89 SkClipOp fOp; in onDraw()
92 {SkClipOp::kIntersect, "Isect "}, in onDraw()
93 {SkClipOp::kDifference, "Diff " }, in onDraw()
223 canvas->clipShader(sh, SkClipOp::kIntersect);
230 canvas->clipShader(sh, SkClipOp::kDifference);
237 canvas->clipShader(sh, SkClipOp::kIntersect);
462 canvas->clipShader(shader, SkClipOp::kDifference);
470 canvas->clipShader(shader, SkClipOp::kDifference);
478 canvas->clipShader(shader, SkClipOp::kDifference);
498 canvas->clipShader(shader, SkClipOp::kDifference);
/third_party/skia/src/utils/
DSkCanvasStack.h41 void onClipRect(const SkRect&, SkClipOp, ClipEdgeStyle) override;
42 void onClipRRect(const SkRRect&, SkClipOp, ClipEdgeStyle) override;
43 void onClipPath(const SkPath&, SkClipOp, ClipEdgeStyle) override;
44 void onClipShader(sk_sp<SkShader>, SkClipOp) override;
45 void onClipRegion(const SkRegion&, SkClipOp) override;
DSkCanvasStack.cpp79 void SkCanvasStack::onClipRect(const SkRect& r, SkClipOp op, ClipEdgeStyle edgeStyle) { in onClipRect()
84 void SkCanvasStack::onClipRRect(const SkRRect& rr, SkClipOp op, ClipEdgeStyle edgeStyle) { in onClipRRect()
89 void SkCanvasStack::onClipPath(const SkPath& p, SkClipOp op, ClipEdgeStyle edgeStyle) { in onClipPath()
94 void SkCanvasStack::onClipShader(sk_sp<SkShader> cs, SkClipOp op) { in onClipShader()
99 void SkCanvasStack::onClipRegion(const SkRegion& deviceRgn, SkClipOp op) { in onClipRegion()
/third_party/skia/src/gpu/v1/
DClipStack.cpp50 if (a.op() == SkClipOp::kIntersect) { in get_clip_geometry()
51 if (b.op() == SkClipOp::kIntersect) { in get_clip_geometry()
67 SkASSERT(b.op() == SkClipOp::kDifference); in get_clip_geometry()
82 SkASSERT(a.op() == SkClipOp::kDifference); in get_clip_geometry()
83 if (b.op() == SkClipOp::kIntersect) { in get_clip_geometry()
97 SkASSERT(b.op() == SkClipOp::kDifference); in get_clip_geometry()
177 GrClipEdgeType get_clip_edge_type(SkClipOp op, GrAA aa) { in get_clip_edge_type()
178 if (op == SkClipOp::kIntersect) { in get_clip_edge_type()
251 if (e.fOp == SkClipOp::kDifference) { in clip_atlas_fp()
267 helper->clear(e.fOp == SkClipOp::kIntersect ? 0x00 : 0xFF); in draw_to_sw_mask()
[all …]
DDevice_v1.h154 void onClipRect(const SkRect& rect, SkClipOp op, bool aa) override { in onClipRect()
155 SkASSERT(op == SkClipOp::kIntersect || op == SkClipOp::kDifference); in onClipRect()
158 void onClipRRect(const SkRRect& rrect, SkClipOp op, bool aa) override { in onClipRRect()
159 SkASSERT(op == SkClipOp::kIntersect || op == SkClipOp::kDifference); in onClipRRect()
162 void onClipPath(const SkPath& path, SkClipOp op, bool aa) override;
171 void onClipRegion(const SkRegion& globalRgn, SkClipOp op) override;
DClipStack.h39 SkClipOp fOp;
63 void clipRect(const SkMatrix& ctm, const SkRect& rect, GrAA aa, SkClipOp op) { in clipRect()
66 void clipRRect(const SkMatrix& ctm, const SkRRect& rrect, GrAA aa, SkClipOp op) { in clipRRect()
69 void clipPath(const SkMatrix& ctm, const SkPath& path, GrAA aa, SkClipOp op) { in clipPath()
105 RawElement(const SkMatrix& localToDevice, const GrShape& shape, GrAA aa, SkClipOp op);
108 SkClipOp op() const { return fOp; } in op()
211 SkClipOp op() const { return fStackOp; } in op()
276 SkClipOp fStackOp;
/third_party/skia/include/utils/
DSkNWayCanvas.h68 void onClipRect(const SkRect&, SkClipOp, ClipEdgeStyle) override;
69 void onClipRRect(const SkRRect&, SkClipOp, ClipEdgeStyle) override;
70 void onClipPath(const SkPath&, SkClipOp, ClipEdgeStyle) override;
71 void onClipShader(sk_sp<SkShader>, SkClipOp) override;
72 void onClipRegion(const SkRegion&, SkClipOp) override;
/third_party/skia/docs/examples/
DCanvas_clipRect_2.cpp8 for (SkClipOp op: { SkClipOp::kIntersect, SkClipOp::kDifference } ) { in draw()
/third_party/skia/include/core/
DSkCanvas.h908 void clipRect(const SkRect& rect, SkClipOp op, bool doAntiAlias);
917 void clipRect(const SkRect& rect, SkClipOp op) { in clipRect()
930 this->clipRect(rect, SkClipOp::kIntersect, doAntiAlias);
933 void clipIRect(const SkIRect& irect, SkClipOp op = SkClipOp::kIntersect) {
962 void clipRRect(const SkRRect& rrect, SkClipOp op, bool doAntiAlias);
971 void clipRRect(const SkRRect& rrect, SkClipOp op) { in clipRRect()
983 this->clipRRect(rrect, SkClipOp::kIntersect, doAntiAlias);
998 void clipPath(const SkPath& path, SkClipOp op, bool doAntiAlias);
1011 void clipPath(const SkPath& path, SkClipOp op) { in clipPath()
1026 this->clipPath(path, SkClipOp::kIntersect, doAntiAlias);
[all …]
/third_party/skia/tools/debugger/
DDebugCanvas.h182 void onClipRect(const SkRect&, SkClipOp, ClipEdgeStyle) override;
183 void onClipRRect(const SkRRect&, SkClipOp, ClipEdgeStyle) override;
184 void onClipPath(const SkPath&, SkClipOp, ClipEdgeStyle) override;
185 void onClipShader(sk_sp<SkShader>, SkClipOp) override;
186 void onClipRegion(const SkRegion& region, SkClipOp) override;

12345