/external/skia/tests/ |
D | ClipCubicTest.cpp | 81 SkIRect clipRect; in DEF_TEST() local 86 clipRect.set(-2, -2, 6, 14); in DEF_TEST() 87 clipper.setClip(clipRect); in DEF_TEST() 94 clipRect.set(-2, 0, 6, 14); in DEF_TEST() 95 clipper.setClip(clipRect); in DEF_TEST() 102 clipRect.set(-2, -2, 6, 12); in DEF_TEST() 103 clipper.setClip(clipRect); in DEF_TEST() 110 clipRect.set(-2, 14, 6, 20); in DEF_TEST() 111 clipper.setClip(clipRect); in DEF_TEST() 116 clipRect.set(-2, 1, 6, 14); in DEF_TEST() [all …]
|
D | ClipStackTest.cpp | 45 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison() 47 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison() 53 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison() 68 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison() 77 s.clipRect(r, SkMatrix::I(), kIntersect_SkClipOp, doAA); in test_assign_and_comparison() 95 s.clipRect(r, SkMatrix::I(), kUnion_SkClipOp, doAA); in test_assign_and_comparison() 146 stack.clipRect(gRects[i], SkMatrix::I(), kUnion_SkClipOp, false); in test_iterators() 271 stack.clipRect(rectA, SkMatrix::I(), kIntersect_SkClipOp, false); in test_bounds() 272 stack.clipRect(rectB, SkMatrix::I(), gOps[op], false); in test_bounds() 351 stack.clipRect(rectA, SkMatrix::I(), kUnion_SkClipOp, false); in test_isWideOpen() [all …]
|
D | CanvasStateTest.cpp | 164 SkIRect clipRect = layerRect; in DEF_TEST() local 165 clipRect.fRight = clipRect.fLeft + (clipRect.width() / 2) - (2*SPACER); in DEF_TEST() 166 clipRect.outset(SPACER, SPACER); in DEF_TEST() 168 SkIRect regionBounds = clipRect; in DEF_TEST() 169 regionBounds.offset(clipRect.width() + (2*SPACER), 0); in DEF_TEST() 236 bool success = drawFn(state, clipRect.fLeft, clipRect.fTop, in DEF_TEST() 237 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST() 243 complex_clips_draw(&canvas, clipRect.fLeft, clipRect.fTop, in DEF_TEST() 244 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST() 325 canvas.clipRect(SkRect::MakeWH(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT))); in DEF_TEST()
|
D | RecordPatternTest.cpp | 33 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()
|
D | ClipBoundsTest.cpp | 23 SkRect clipRect(screen); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 24 clipRect.outset(10, 10); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 29 stack.clipRect(clipRect, SkMatrix::I(), kReplace_SkClipOp, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | RecordingXfermodeTest.cpp | 38 void draw(SkCanvas* canvas, const SkRect& clipRect, SkBlendMode mode) const { in draw() argument 51 canvas->clipRect(clipRect); in draw() 87 canvas.clipRect(intoClip); in recordAndReplay() 120 replayCanvas.clipRect(intoClip); in recordAndReplay()
|
D | CanvasStateHelpers.cpp | 41 SkRect clipRect = SkRect::MakeLTRB(SkIntToScalar(left), SkIntToScalar(top), in complex_clips_draw() local 43 canvas->clipRect(clipRect, (SkRegion::Op) clipOp); in complex_clips_draw()
|
D | CanvasTest.cpp | 86 canvas.clipRect(SkRect::MakeEmpty()); in DEF_TEST() 129 canvas->clipRect(SkRect::Make(clipR), SkClipOp::kIntersect); in test_restriction() 145 canvas->clipRect(expandR, op); in test_restriction() 167 canvas->clipRect({0, 0, 20, 40 }); in DEF_TEST() 169 canvas->clipRect({30, 0, 50, 40 }); in DEF_TEST() 281 void clipRect(const SkRect& r, SkClipOp op, bool aa) override { in clipRect() function in Canvas2CanvasClipVisitor 282 fTarget->clipRect(r, op, aa); in clipRect() 393 SIMPLE_TEST_STEP(ClipRect, clipRect(d.fRect)); 452 canvas->clipRect(d.fRect); in TwoClipOpsStep() 491 testCanvas->clipRect(d.fRect); in DrawPictureTestStep() [all …]
|
/external/skia/gm/ |
D | imagesource.cpp | 17 const SkRect& clipRect, in fill_rect_filtered() argument 22 canvas->clipRect(clipRect); in fill_rect_filtered() 48 const SkRect clipRect = SkRect::MakeXYWH(0, 0, 100, 100); in onDraw() local 54 fill_rect_filtered(canvas, clipRect, std::move(imageSource)); in onDraw() 61 fill_rect_filtered(canvas, clipRect, std::move(imageSourceSrcRect)); in onDraw() 68 fill_rect_filtered(canvas, clipRect, std::move(imageSourceSrcRectDstRect)); in onDraw() 75 fill_rect_filtered(canvas, clipRect, std::move(imageSourceDstRectOnly)); in onDraw()
|
D | xfermodeimagefilter.cpp | 111 SkRect clipRect = SkRect::MakeWH(SkIntToScalar(fBitmap.width() + 4), in onDraw() local 126 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 137 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 161 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 173 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 181 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 194 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 207 canvas->clipRect(SkRect::MakeWH( in DrawClippedBitmap() 217 canvas->clipRect(rect); in DrawClippedPaint()
|
D | blurquickreject.cpp | 37 SkRect clipRect = SkRect::MakeXYWH(0, 0, kBoxSize, kBoxSize); in onDraw() local 65 canvas->drawRect(clipRect, hairlinePaint); in onDraw() 66 canvas->clipRect(clipRect); in onDraw()
|
D | bigblurs.cpp | 79 SkRect clipRect = SkRect::MakeXYWH(SkIntToScalar(desiredX), in onDraw() local 84 canvas->clipRect(clipRect); in onDraw() 95 canvas->drawRect(clipRect, outlinePaint); in onDraw()
|
D | megalooper.cpp | 94 canvas->clipRect(outerClip, kIntersect_SkClipOp); in draw0x0() 95 canvas->clipRect(innerClip, kDifference_SkClipOp); in draw0x0() 149 canvas->clipRect(outerClip, kIntersect_SkClipOp); in draw4x1() 150 canvas->clipRect(rect, kDifference_SkClipOp); in draw4x1() 198 canvas->clipRect(outerClip, kIntersect_SkClipOp); in draw1x4() 199 canvas->clipRect(rect, kDifference_SkClipOp); in draw1x4()
|
D | offsetimagefilter.cpp | 72 SkRect clipRect = SkRect::MakeIWH(image->width(), image->height()); in DrawClippedImage() local 75 canvas->clipRect(clipRect); in DrawClippedImage() 83 if (clipRect.intersect(cropRectFloat)) { in DrawClippedImage() 88 canvas->drawRect(clipRect, strokePaint); in DrawClippedImage() 136 canvas->clipRect(*clipR); in doDraw()
|
D | clip_error.cpp | 22 canvas->clipRect(SkRect::MakeLTRB(0, 0, 1081, 665)); in draw_text() 69 canvas->clipRect(SkRect::MakeLTRB(0, 0, WIDTH, 256)); in onDraw() 75 canvas->clipRect(SkRect::MakeLTRB(0, 256, WIDTH, 510)); in onDraw()
|
D | dropshadowimagefilter.cpp | 22 canvas->clipRect(r); in draw_paint() 33 canvas->clipRect(r); in draw_path() 47 canvas->clipRect(r); in draw_text() 66 canvas->clipRect(r); in draw_bitmap()
|
D | inversepaths.cpp | 88 SkRect clipRect = SkRect::MakeLTRB(slideBoundary, slideBoundary, variable 120 canvas->drawRect(clipRect, clipPaint); 123 canvas->clipRect(clipRect);
|
D | mixedtextblobs.cpp | 21 const SkRect& clipRect) { in draw_blob() argument 28 canvas->drawRect(clipRect, clipHairline); in draw_blob() 31 canvas->clipRect(clipRect); in draw_blob()
|
D | croppedrects.cpp | 63 canvas->clipRect(kSrcImageClip); in onDraw() 73 canvas->clipRect(drawRect); in onDraw() 94 canvas->clipRect(kSrcImageClip); in onDraw()
|
D | coloremoji.cpp | 160 for (const SkRect& clipRect : clipRects) { in onDraw() local 163 canvas->drawRect(clipRect, clipHairline); in onDraw() 166 canvas->clipRect(clipRect); in onDraw()
|
D | windowrectangles.cpp | 44 stack.clipRect(SkRect::MakeXYWH(370.75, 80.25, 149, 100), SkMatrix::I(), in onDraw() 46 stack.clipRect(SkRect::MakeXYWH(80.25, 420.75, 150, 100), SkMatrix::I(), in onDraw() 91 canvas->clipRect(element->getRect(), op, isAA); in onCoverClipStack() 94 canvas->clipRect({ 0, 0, 0, 0 }, kIntersect_SkClipOp, false); in onCoverClipStack() 285 canvas->clipRect(SkRect::Make(kCoverRect)); in fail()
|
/external/skia/samplecode/ |
D | SampleManyRects.cpp | 55 SkRect clipRect = rect; in onDrawContent() local 58 clipRect.outset(10, 10); in onDrawContent() 59 canvas->clipRect(clipRect); in onDrawContent()
|
D | SampleClipDrawMatch.cpp | 167 canvas->clipRect(create_rect(offset), useAA); in drawClippedGeom() 184 canvas->clipRect(r, true); // AA here forces shader clips in drawClippedGeom() 185 canvas->clipRect(create_rect(offset), useAA); in drawClippedGeom() 190 canvas->clipRect(r, true); // AA here forces shader clips in drawClippedGeom() 196 canvas->clipRect(r, true); // AA here forces shader clips in drawClippedGeom() 202 canvas->clipRect(r, true); // AA here forces shader clips in drawClippedGeom()
|
/external/skia/src/core/ |
D | SkScan_Path.cpp | 389 void sk_fill_path(const SkPath& path, const SkIRect& clipRect, SkBlitter* blitter, in sk_fill_path() argument 393 SkIRect shiftedClip = clipRect; in sk_fill_path() 418 SkIRect rect = clipRect; in sk_fill_path() 465 ib.setBlitter(blitter, clipRect, shiftEdgesUp); in sk_fill_path() 692 const SkIRect* clipRect, SkEdge* list[]) { in build_tri_edges() argument 695 if (edge->setLine(pts[0], pts[1], clipRect, 0)) { in build_tri_edges() 699 if (edge->setLine(pts[1], pts[2], clipRect, 0)) { in build_tri_edges() 703 if (edge->setLine(pts[2], pts[0], clipRect, 0)) { in build_tri_edges() 710 static void sk_fill_triangle(const SkPoint pts[], const SkIRect* clipRect, in sk_fill_triangle() argument 717 int count = build_tri_edges(edgeStorage, pts, clipRect, list); in sk_fill_triangle() [all …]
|
D | SkBlitter.h | 176 void init(SkBlitter* blitter, const SkIRect& clipRect) { in init() argument 177 SkASSERT(!clipRect.isEmpty()); in init() 179 fClipRect = clipRect; in init() 241 void init(SkBlitter* blitter, const SkIRect& clipRect) { in init() argument 243 SkASSERT(!clipRect.isEmpty()); in init() 245 fClipRect = clipRect; in init()
|