/third_party/skia/samplecode/ |
D | SampleShadowReference.cpp | 125 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 …]
|
D | SampleManyRects.cpp | 48 SkRect clipRect = rect; in onDrawContent() local 51 clipRect.outset(10, 10); in onDrawContent() 52 canvas->clipRect(clipRect); in onDrawContent()
|
/third_party/skia/tests/ |
D | ClipCubicTest.cpp | 87 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 …]
|
D | CanvasStateTest.cpp | 202 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()
|
D | ClipStackTest.cpp | 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() 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 …]
|
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 | RecordingXfermodeTest.cpp | 41 void draw(SkCanvas* canvas, const SkRect& clipRect, SkBlendMode mode) const { in draw() argument 54 canvas->clipRect(clipRect); in draw() 91 canvas.clipRect(intoClip); in recordAndReplay() 124 replayCanvas.clipRect(intoClip); in recordAndReplay()
|
D | CanvasTest.cpp | 81 ->clipRect(clip); in DEF_TEST() 109 canvas.clipRect(SkRect::MakeEmpty()); in DEF_TEST() 152 canvas->clipRect(SkRect::Make(clipR), SkClipOp::kIntersect); in test_restriction() 172 canvas->clipRect({0, 0, 20, 40 }); in DEF_TEST() 174 canvas->clipRect({30, 0, 50, 40 }); in DEF_TEST() 271 c->clipRect(kRect); in __anon01559f290902() 316 c->clipRect(kRect); in __anon01559f291102() 338 testCanvas->clipRect(kRect); in __anon01559f291302() 477 canvas.clipRect(SkRect::MakeXYWH(12.7f, 12.7f, 75, 75)); in DEF_TEST() 484 filterCanvas.clipRect(SkRect::MakeXYWH(30.5f, 30.7f, 100, 100)); in DEF_TEST() [all …]
|
/third_party/skia/gm/ |
D | imagesource.cpp | 28 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()
|
D | xfermodeimagefilter.cpp | 118 SkRect clipRect = SkRect::MakeWH(SkIntToScalar(fBitmap.width() + 4), in onDraw() local 127 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 136 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 157 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 168 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 176 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 188 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 210 canvas->clipRect(rect); in DrawClippedPaint()
|
D | blurquickreject.cpp | 45 SkRect clipRect = SkRect::MakeXYWH(0, 0, kBoxSize, kBoxSize); in onDraw() local 72 canvas->drawRect(clipRect, hairlinePaint); in onDraw() 73 canvas->clipRect(clipRect); in onDraw()
|
D | bigblurs.cpp | 87 SkRect clipRect = SkRect::MakeXYWH(SkIntToScalar(desiredX), in onDraw() local 92 canvas->clipRect(clipRect); in onDraw() 103 canvas->drawRect(clipRect, outlinePaint); in onDraw()
|
D | offsetimagefilter.cpp | 77 SkRect clipRect = SkRect::MakeIWH(image->width(), image->height()); in DrawClippedImage() local 80 canvas->clipRect(clipRect); in DrawClippedImage() 88 if (clipRect.intersect(cropRectFloat)) { in DrawClippedImage() 93 canvas->drawRect(clipRect, strokePaint); in DrawClippedImage() 142 canvas->clipRect(*clipR); in doDraw()
|
D | complexclip4.cpp | 50 const SkRect& clipRect, in emulateClipRectReplace() argument 53 canvas->clipRect(clipRect, SkClipOp::kIntersect, aa); in emulateClipRectReplace() 112 canvas->clipRect(SkRect::MakeLTRB(100, 400, 300, 750), in onDraw()
|
D | windowrectangles.cpp | 71 canvas->clipRect(element->getDeviceSpaceRect(), op, isAA); in coverClipStack() 74 canvas->clipRect({ 0, 0, 0, 0 }, SkClipOp::kIntersect, false); in coverClipStack() 86 stack.clipRect(SkRect::MakeXYWH(370.75, 80.25, 149, 100), SkMatrix::I(), in onDraw() 88 stack.clipRect(SkRect::MakeXYWH(80.25, 420.75, 150, 100), SkMatrix::I(), in onDraw()
|
D | imagefilters.cpp | 45 canvas->clipRect(SkRect::MakeWH(220, 220)); in do_draw() 116 canvas->clipRect(r.makeOutset(outset, outset)); 236 canvas->clipRect(crop); 242 canvas->clipRect(crop); 273 canvas->clipRect(crop); 279 canvas->clipRect(crop);
|
/third_party/skia/docs/examples/ |
D | Canvas_quickReject.cpp | 8 SkRect clipRect = {30, 130, 120, 230 }; in draw() local 10 canvas->clipRect(clipRect); in draw() 14 canvas->clipRect(clipRect); in draw()
|
D | Region_setPath.cpp | 12 SkIRect clipRect = {20, 20, 100, 120}; 13 SkRegion clipRegion(clipRect); 17 clipRect.offset(100, 0); 19 canvas->clipRect(SkRect::Make(clipRect), false);
|
D | Canvas_clipRect_3.cpp | 11 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()
|
D | skbug6031.cpp | 12 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()
|
D | Canvas_clear.cpp | 8 canvas->clipRect(SkRect::MakeWH(256, 128)); in draw() 12 canvas->clipRect(SkRect::MakeWH(150, 192)); in draw() 15 canvas->clipRect(SkRect::MakeWH(75, 256)); in draw()
|
D | Path_FillType_a.cpp | 14 SkRect clipRect = {0, 0, 51, 100}; in draw() local 21 canvas->clipRect(clipRect); in draw()
|
D | Path_FillType_b.cpp | 13 SkRect clipRect = {0, 0, 128, 128}; 28 canvas->clipRect(clipRect);
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/ |
D | Device.cpp | 903 …bool Device::ClipDstRect(sw::RectF &srcRect, sw::Rect &dstRect, sw::Rect &clipRect, bool flipX, bo… in ClipDstRect() argument 905 if(dstRect.x0 < clipRect.x0) in ClipDstRect() 907 …float offset = (static_cast<float>(clipRect.x0 - dstRect.x0) / static_cast<float>(dstRect.width())… in ClipDstRect() 920 dstRect.x0 = clipRect.x0; in ClipDstRect() 922 if(dstRect.x1 > clipRect.x1) in ClipDstRect() 924 …float offset = (static_cast<float>(dstRect.x1 - clipRect.x1) / static_cast<float>(dstRect.width())… in ClipDstRect() 937 dstRect.x1 = clipRect.x1; in ClipDstRect() 939 if(dstRect.y0 < clipRect.y0) in ClipDstRect() 941 …float offset = (static_cast<float>(clipRect.y0 - dstRect.y0) / static_cast<float>(dstRect.height()… in ClipDstRect() 954 dstRect.y0 = clipRect.y0; in ClipDstRect() [all …]
|
/third_party/skia/src/core/ |
D | SkScan_Path.cpp | 395 void sk_fill_path(const SkPath& path, const SkIRect& clipRect, SkBlitter* blitter, in sk_fill_path() argument 399 SkIRect shiftedClip = clipRect; in sk_fill_path() 417 SkIRect rect = clipRect; in sk_fill_path() 464 ib.setBlitter(blitter, clipRect, shiftEdgesUp); in sk_fill_path() 687 const SkIRect* clipRect, SkEdge* list[]) { in build_tri_edges() argument 690 if (edge->setLine(pts[0], pts[1], clipRect, 0)) { in build_tri_edges() 694 if (edge->setLine(pts[1], pts[2], clipRect, 0)) { in build_tri_edges() 698 if (edge->setLine(pts[2], pts[0], clipRect, 0)) { in build_tri_edges() 705 static void sk_fill_triangle(const SkPoint pts[], const SkIRect* clipRect, in sk_fill_triangle() argument 712 int count = build_tri_edges(edgeStorage, pts, clipRect, list); in sk_fill_triangle() [all …]
|