Home
last modified time | relevance | path

Searched refs:clipRect (Results 1 – 25 of 542) sorted by relevance

12345678910>>...22

/third_party/flutter/skia/samplecode/
DSampleShadowReference.cpp125 SkRect clipRect = SkRect::MakeXYWH(45, 75, 122, 250); in onDrawContent() local
130 canvas->clipRect(clipRect); in onDrawContent()
138 clipRect.offset(clipDelta); in onDrawContent()
141 canvas->clipRect(clipRect); in onDrawContent()
149 clipRect.offset(clipDelta); in onDrawContent()
152 canvas->clipRect(clipRect); in onDrawContent()
160 clipRect.offset(clipDelta); in onDrawContent()
163 canvas->clipRect(clipRect); in onDrawContent()
171 clipRect.offset(clipDelta); in onDrawContent()
174 canvas->clipRect(clipRect); in onDrawContent()
[all …]
DSampleManyRects.cpp48 SkRect clipRect = rect; in onDrawContent() local
51 clipRect.outset(10, 10); in onDrawContent()
52 canvas->clipRect(clipRect); in onDrawContent()
/third_party/skia/samplecode/
DSampleShadowReference.cpp125 SkRect clipRect = SkRect::MakeXYWH(45, 75, 122, 250); in onDrawContent() local
130 canvas->clipRect(clipRect); in onDrawContent()
138 clipRect.offset(clipDelta); in onDrawContent()
141 canvas->clipRect(clipRect); in onDrawContent()
149 clipRect.offset(clipDelta); in onDrawContent()
152 canvas->clipRect(clipRect); in onDrawContent()
160 clipRect.offset(clipDelta); in onDrawContent()
163 canvas->clipRect(clipRect); in onDrawContent()
171 clipRect.offset(clipDelta); in onDrawContent()
174 canvas->clipRect(clipRect); in onDrawContent()
[all …]
DSampleManyRects.cpp48 SkRect clipRect = rect; in onDrawContent() local
51 clipRect.outset(10, 10); in onDrawContent()
52 canvas->clipRect(clipRect); in onDrawContent()
/third_party/flutter/skia/tests/
DOctoBoundsTest.cpp22 Reporter* reporter, const SkIRect& clipRect, const GrOctoBounds& octoBounds) { in validate_octo_bounds() argument
24 REPORTER_ASSERT(reporter, octoBounds.left() >= (float)clipRect.left() - kEpsilon); in validate_octo_bounds()
25 REPORTER_ASSERT(reporter, octoBounds.top() >= (float)clipRect.top() - kEpsilon); in validate_octo_bounds()
26 REPORTER_ASSERT(reporter, octoBounds.right() <= (float)clipRect.right() + kEpsilon); in validate_octo_bounds()
27 REPORTER_ASSERT(reporter, octoBounds.bottom() <= (float)clipRect.bottom() + kEpsilon); in validate_octo_bounds()
152 SkIRect clipRect; in test_octagon() local
154 clipRect.fLeft = next_range_i(rand, devIBounds.left(), devIBounds.right() - 1); in test_octagon()
155 clipRect.fTop = next_range_i(rand, devIBounds.top(), devIBounds.bottom() - 1); in test_octagon()
156 clipRect.fRight = next_range_i(rand, clipRect.left() + 1, devIBounds.right()); in test_octagon()
157 clipRect.fBottom = next_range_i(rand, clipRect.top() + 1, devIBounds.bottom()); in test_octagon()
[all …]
DClipCubicTest.cpp89 SkIRect clipRect; in DEF_TEST() local
94 clipRect.set(-2, -2, 6, 14); in DEF_TEST()
95 clipper.setClip(clipRect); in DEF_TEST()
102 clipRect.set(-2, 0, 6, 14); in DEF_TEST()
103 clipper.setClip(clipRect); in DEF_TEST()
110 clipRect.set(-2, -2, 6, 12); in DEF_TEST()
111 clipper.setClip(clipRect); in DEF_TEST()
118 clipRect.set(-2, 14, 6, 20); in DEF_TEST()
119 clipper.setClip(clipRect); in DEF_TEST()
124 clipRect.set(-2, 1, 6, 14); in DEF_TEST()
[all …]
DCanvasStateTest.cpp175 SkIRect clipRect = layerRect; in DEF_TEST() local
176 clipRect.fRight = clipRect.fLeft + (clipRect.width() / 2) - (2*SPACER); in DEF_TEST()
177 clipRect.outset(SPACER, SPACER); in DEF_TEST()
179 SkIRect regionBounds = clipRect; in DEF_TEST()
180 regionBounds.offset(clipRect.width() + (2*SPACER), 0); in DEF_TEST()
247 bool success = drawFn(state, clipRect.fLeft, clipRect.fTop, in DEF_TEST()
248 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST()
254 complex_clips_draw(&canvas, clipRect.fLeft, clipRect.fTop, in DEF_TEST()
255 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST()
306 canvas.clipRect(SkRect::MakeWH(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT))); in DEF_TEST()
DClipStackTest.cpp71 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison()
73 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison()
79 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison()
94 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison()
103 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison()
121 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison()
172 stack.clipRect(gRects[i], SkMatrix::I(), kUnion_SkClipOp, false); in test_iterators()
301 stack.clipRect(rectA, SkMatrix::I(), kIntersect_SkClipOp, false); in test_bounds()
302 stack.clipRect(rectB, SkMatrix::I(), gOps[op], false); in test_bounds()
381 stack.clipRect(rectA, SkMatrix::I(), kUnion_SkClipOp, false); in test_isWideOpen()
[all …]
DRecordPatternTest.cpp33 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
52 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
73 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
88 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
94 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
95 recorder.clipRect(SkRect::MakeWH(100, 100)); in DEF_TEST()
113 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
123 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
132 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
133 recorder.clipRect(SkRect::MakeWH(100, 400)); in DEF_TEST()
DClipBoundsTest.cpp24 SkRect clipRect(screen); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
25 clipRect.outset(10, 10); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
30 stack.clipRect(clipRect, SkMatrix::I(), kReplace_SkClipOp, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/skia/tests/
DClipCubicTest.cpp87 SkIRect clipRect; in DEF_TEST() local
92 clipRect.setLTRB(-2, -2, 6, 14); in DEF_TEST()
93 clipper.setClip(clipRect); in DEF_TEST()
100 clipRect.setLTRB(-2, 0, 6, 14); in DEF_TEST()
101 clipper.setClip(clipRect); in DEF_TEST()
108 clipRect.setLTRB(-2, -2, 6, 12); in DEF_TEST()
109 clipper.setClip(clipRect); in DEF_TEST()
116 clipRect.setLTRB(-2, 14, 6, 20); in DEF_TEST()
117 clipper.setClip(clipRect); in DEF_TEST()
122 clipRect.setLTRB(-2, 1, 6, 14); in DEF_TEST()
[all …]
DCanvasStateTest.cpp202 SkIRect clipRect = layerRect; in DEF_TEST() local
203 clipRect.fRight = clipRect.fLeft + (clipRect.width() / 2) - (2*SPACER); in DEF_TEST()
204 clipRect.outset(SPACER, SPACER); in DEF_TEST()
206 SkIRect regionBounds = clipRect; in DEF_TEST()
207 regionBounds.offset(clipRect.width() + (2*SPACER), 0); in DEF_TEST()
266 bool success = drawFn(state, clipRect.fLeft, clipRect.fTop, in DEF_TEST()
267 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST()
273 complex_clips_draw(canvas, clipRect.fLeft, clipRect.fTop, in DEF_TEST()
274 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST()
317 canvas.clipRect(SkRect::MakeWH(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT))); in DEF_TEST()
DRecordPatternTest.cpp33 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
52 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
73 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
88 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
94 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
95 recorder.clipRect(SkRect::MakeWH(100, 100)); in DEF_TEST()
113 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
123 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
132 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
133 recorder.clipRect(SkRect::MakeWH(100, 400)); in DEF_TEST()
DClipStackTest.cpp55 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()
105 s.clipRect(r, SkMatrix::I(), SkClipOp::kDifference, doAA); in test_assign_and_comparison()
155 stack.clipRect(gRects[i], SkMatrix::I(), SkClipOp::kDifference, false); in test_iterators()
270 stack.clipRect(rectA, SkMatrix::I(), SkClipOp::kIntersect, false); in test_bounds()
271 stack.clipRect(rectB, SkMatrix::I(), gOps[op], false); in test_bounds()
334 stack.clipRect(emptyRect, SkMatrix::I(), SkClipOp::kDifference, false); in test_isWideOpen()
[all …]
/third_party/flutter/skia/gm/
Dimagesource.cpp29 const SkRect& clipRect, in fill_rect_filtered() argument
34 canvas->clipRect(clipRect); in fill_rect_filtered()
60 const SkRect clipRect = SkRect::MakeXYWH(0, 0, 100, 100); in onDraw() local
66 fill_rect_filtered(canvas, clipRect, std::move(imageSource)); in onDraw()
73 fill_rect_filtered(canvas, clipRect, std::move(imageSourceSrcRect)); in onDraw()
80 fill_rect_filtered(canvas, clipRect, std::move(imageSourceSrcRectDstRect)); in onDraw()
87 fill_rect_filtered(canvas, clipRect, std::move(imageSourceDstRectOnly)); in onDraw()
Dxfermodeimagefilter.cpp119 SkRect clipRect = SkRect::MakeWH(SkIntToScalar(fBitmap.width() + 4), in onDraw() local
128 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw()
137 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw()
158 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw()
170 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw()
179 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw()
191 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw()
204 canvas->clipRect(SkRect::MakeIWH(bitmap.width(), bitmap.height())); in DrawClippedBitmap()
213 canvas->clipRect(rect); in DrawClippedPaint()
/third_party/skia/gm/
Dimagesource.cpp28 const SkRect& clipRect, in fill_rect_filtered() argument
33 canvas->clipRect(clipRect); in fill_rect_filtered()
58 const SkRect clipRect = SkRect::MakeXYWH(0, 0, 100, 100); in onDraw() local
65 fill_rect_filtered(canvas, clipRect, std::move(imageSource)); in onDraw()
72 fill_rect_filtered(canvas, clipRect, std::move(imageSourceSrcRect)); in onDraw()
79 fill_rect_filtered(canvas, clipRect, std::move(imageSourceSrcRectDstRect)); in onDraw()
86 fill_rect_filtered(canvas, clipRect, std::move(imageSourceDstRectOnly)); in onDraw()
/third_party/flutter/skia/docs/examples/
DCanvas_quickReject.cpp8 SkRect clipRect = {30, 130, 120, 230 }; in draw() local
10 canvas->clipRect(clipRect); in draw()
14 canvas->clipRect(clipRect); in draw()
DRegion_setPath.cpp12 SkIRect clipRect = {20, 20, 100, 120};
13 SkRegion clipRegion(clipRect);
17 clipRect.offset(100, 0);
19 canvas->clipRect(SkRect::Make(clipRect), false);
DCanvas_clipRect_3.cpp11 SkRect clipRect = { 0, 0, 87.4f, 87.4f }; in draw() local
14 canvas->clipRect(clipRect, SkClipOp::kIntersect, alias); in draw()
18 canvas->clipRect(clipRect, SkClipOp::kDifference, alias); in draw()
/third_party/skia/docs/examples/
DCanvas_quickReject.cpp8 SkRect clipRect = {30, 130, 120, 230 }; in draw() local
10 canvas->clipRect(clipRect); in draw()
14 canvas->clipRect(clipRect); in draw()
DRegion_setPath.cpp12 SkIRect clipRect = {20, 20, 100, 120};
13 SkRegion clipRegion(clipRect);
17 clipRect.offset(100, 0);
19 canvas->clipRect(SkRect::Make(clipRect), false);
DCanvas_clipRect_3.cpp11 SkRect clipRect = { 0, 0, 87.4f, 87.4f }; in draw() local
14 canvas->clipRect(clipRect, SkClipOp::kIntersect, alias); in draw()
18 canvas->clipRect(clipRect, SkClipOp::kDifference, alias); in draw()
Dskbug6031.cpp12 canvas->clipRect(SkRect{0, 0, 2 * kW, 2 * kH}, replaceClipOp); in draw()
16 canvas->clipRect(SkRect{0, 0, kW, kH}, replaceClipOp); in draw()
20 canvas->clipRect(SkRect{0, kH, kW, 3 * kH}, replaceClipOp); in draw()
24 canvas->clipRect(SkRect{kW, 0, 3 * kW, kH}, replaceClipOp); in draw()
28 canvas->clipRect(SkRect{kW, kH, 3 * kW, 3 * kH}, replaceClipOp); in draw()
/third_party/flutter/skia/src/gpu/ccpr/
DGrOctoBounds.cpp11 bool GrOctoBounds::clip(const SkIRect& clipRect) { in clip() argument
13 float l = std::max(fBounds.left(), (float)clipRect.left()); in clip()
14 float t = std::max(fBounds.top(), (float)clipRect.top()); in clip()
15 float r = std::min(fBounds.right(), (float)clipRect.right()); in clip()
16 float b = std::min(fBounds.bottom(), (float)clipRect.bottom()); in clip()
107 SkASSERT(l >= (float)clipRect.left()); in clip()
108 SkASSERT(t >= (float)clipRect.top()); in clip()
109 SkASSERT(r <= (float)clipRect.right()); in clip()
110 SkASSERT(b <= (float)clipRect.bottom()); in clip()

12345678910>>...22