/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 | CanvasStateTest.cpp | 163 SkIRect clipRect = layerRect; in DEF_TEST() local 164 clipRect.fRight = clipRect.fLeft + (clipRect.width() / 2) - (2*SPACER); in DEF_TEST() 165 clipRect.outset(SPACER, SPACER); in DEF_TEST() 167 SkIRect regionBounds = clipRect; in DEF_TEST() 168 regionBounds.offset(clipRect.width() + (2*SPACER), 0); in DEF_TEST() 235 bool success = drawFn(state, clipRect.fLeft, clipRect.fTop, in DEF_TEST() 236 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST() 242 complex_clips_draw(&canvas, clipRect.fLeft, clipRect.fTop, in DEF_TEST() 243 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST() 331 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 | RecordingXfermodeTest.cpp | 37 void draw(SkCanvas* canvas, const SkRect& clipRect, SkXfermode::Mode mode) const { in draw() argument 50 canvas->clipRect(clipRect); in draw() 87 canvas.clipRect(intoClip); in recordAndReplay() 121 replayCanvas.clipRect(intoClip); in recordAndReplay()
|
D | ClipBoundsTest.cpp | 36 SkRect clipRect(screen); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 37 clipRect.outset(10, 10); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 42 stack.clipDevRect(clipRect, SkRegion::kReplace_Op, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | CanvasStateHelpers.cpp | 42 SkRect clipRect = SkRect::MakeLTRB(SkIntToScalar(left), SkIntToScalar(top), in complex_clips_draw() local 44 canvas->clipRect(clipRect, (SkRegion::Op) clipOp); in complex_clips_draw()
|
D | PathOpsBuilderTest.cpp | 211 SkPath clipCircle, clipRect; in DEF_TEST() local 225 clipRect.addPath(inner); in DEF_TEST() 237 clipRect.addPath(inner); in DEF_TEST() 249 clipRect.addPath(inner); in DEF_TEST() 265 clipRect.addPath(inner); in DEF_TEST() 269 builder.add(clipRect, kDifference_SkPathOp); in DEF_TEST()
|
D | RecordOptsTest.cpp | 42 recorder.clipRect(SkRect::MakeWH(200, 200)); in DEF_TEST() 63 recorder.clipRect(SkRect::MakeWH(200, 200)); in DEF_TEST() 64 recorder.clipRect(SkRect::MakeWH(100, 100)); in DEF_TEST() 268 recorder.clipRect(clip); in DEF_TEST() 308 recorder.clipRect(clip); in DEF_TEST() 320 recorder.clipRect(clip); in DEF_TEST()
|
D | BlitMaskClip.cpp | 57 SkIRect clipRect = {left, top, right, bottom}; in DEF_TEST() local 58 tb.blitMask(mask, clipRect); in DEF_TEST()
|
/external/skia/gm/ |
D | imagesource.cpp | 31 static void FillRectFiltered(SkCanvas* canvas, const SkRect& clipRect, SkImageFilter* filter) { in FillRectFiltered() argument 35 canvas->clipRect(clipRect); in FillRectFiltered() 45 SkRect clipRect = SkRect::MakeXYWH(0, 0, 100, 100); in onDraw() local 56 FillRectFiltered(canvas, clipRect, imageSource); in onDraw() 60 FillRectFiltered(canvas, clipRect, imageSourceSrcRect); in onDraw() 64 FillRectFiltered(canvas, clipRect, imageSourceSrcRectDstRect); in onDraw() 68 FillRectFiltered(canvas, clipRect, imageSourceDstRectOnly); in onDraw()
|
D | blurquickreject.cpp | 37 SkRect clipRect = SkRect::MakeXYWH(0, 0, kBoxSize, kBoxSize); in onDraw() local 66 canvas->drawRect(clipRect, hairlinePaint); in onDraw() 67 canvas->clipRect(clipRect); in onDraw()
|
D | xfermodeimagefilter.cpp | 119 SkRect clipRect = SkRect::MakeWH(SkIntToScalar(fBitmap.width() + 4), in onDraw() local 131 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 141 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 165 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 179 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 188 DrawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 201 canvas->clipRect(SkRect::MakeWH( in DrawClippedBitmap() 211 canvas->clipRect(rect); in DrawClippedPaint()
|
D | bigblurs.cpp | 79 SkRect clipRect = SkRect::MakeXYWH(SkIntToScalar(desiredX), in onDraw() local 84 canvas->clipRect(clipRect, SkRegion::kReplace_Op, false); in onDraw() 95 canvas->drawRect(clipRect, outlinePaint); in onDraw()
|
D | offsetimagefilter.cpp | 75 SkRect clipRect = SkRect::MakeIWH(image->width(), image->height()); in DrawClippedImage() local 78 canvas->clipRect(clipRect); in DrawClippedImage() 86 if (clipRect.intersect(cropRectFloat)) { in DrawClippedImage() 91 canvas->drawRect(clipRect, strokePaint); in DrawClippedImage() 139 canvas->clipRect(*clipR); in doDraw()
|
D | megalooper.cpp | 94 canvas->clipRect(outerClip, SkRegion::kIntersect_Op); in draw0x0() 95 canvas->clipRect(innerClip, SkRegion::kDifference_Op); in draw0x0() 149 canvas->clipRect(outerClip, SkRegion::kIntersect_Op); in draw4x1() 150 canvas->clipRect(rect, SkRegion::kDifference_Op); in draw4x1() 199 canvas->clipRect(outerClip, SkRegion::kIntersect_Op); in draw1x4() 200 canvas->clipRect(rect, SkRegion::kDifference_Op); in draw1x4()
|
D | inversepaths.cpp | 72 SkRect clipRect = SkRect::MakeLTRB(slideBoundary, slideBoundary, variable 103 canvas->drawRect(clipRect, clipPaint); 106 canvas->clipRect(clipRect);
|
D | dropshadowimagefilter.cpp | 21 canvas->clipRect(r); in draw_paint() 32 canvas->clipRect(r); in draw_path() 46 canvas->clipRect(r); in draw_text() 65 canvas->clipRect(r); in draw_bitmap()
|
D | mixedtextblobs.cpp | 20 const SkRect& clipRect) { in draw_blob() argument 27 canvas->drawRect(clipRect, clipHairline); in draw_blob() 30 canvas->clipRect(clipRect); in draw_blob()
|
D | pictureimagefilter.cpp | 45 static void fillRectFiltered(SkCanvas* canvas, const SkRect& clipRect, SkImageFilter* filter) { in fillRectFiltered() argument 49 canvas->clipRect(clipRect); in fillRectFiltered()
|
D | clip_strokerect.cpp | 39 canvas->clipRect(rect, SkRegion::kReplace_Op, true); in onDraw() 57 canvas->clipRect(rect2, SkRegion::kReplace_Op, true); in onDraw()
|
D | blurredclippedcircle.cpp | 48 canvas->clipRect(clipRect1, SkRegion::kIntersect_Op, false); in onDraw() 52 canvas->clipRect(clipRect1, SkRegion::kIntersect_Op, false); in onDraw()
|
/external/skia/src/core/ |
D | SkScan_Path.cpp | 429 void sk_fill_path(const SkPath& path, const SkIRect* clipRect, SkBlitter* blitter, in sk_fill_path() argument 438 int count = builder.build(path, clipRect, shiftEdgesUp, canCullToTheRight); in sk_fill_path() 487 if (clipRect && start_y < clipRect->fTop) { in sk_fill_path() 488 start_y = clipRect->fTop; in sk_fill_path() 490 if (clipRect && stop_y > clipRect->fBottom) { in sk_fill_path() 491 stop_y = clipRect->fBottom; in sk_fill_path() 508 if (clipRect) { in sk_fill_path() 509 rightEdge = clipRect->right(); in sk_fill_path() 689 const SkIRect* clipRect, SkEdge* list[]) { in build_tri_edges() argument 692 if (edge->setLine(pts[0], pts[1], clipRect, 0)) { in build_tri_edges() [all …]
|
/external/skia/samplecode/ |
D | SampleManyRects.cpp | 58 SkRect clipRect = rect; in onDrawContent() local 61 clipRect.outset(10, 10); in onDrawContent() 62 canvas->clipRect(clipRect); in onDrawContent()
|
D | SampleClipDrawMatch.cpp | 167 canvas->clipRect(create_rect(offset), SkRegion::kReplace_Op, useAA); in drawClippedGeom() 184 canvas->clipRect(r, SkRegion::kReplace_Op, true); // AA here forces shader clips in drawClippedGeom() 185 canvas->clipRect(create_rect(offset), SkRegion::kIntersect_Op, useAA); in drawClippedGeom() 190 canvas->clipRect(r, SkRegion::kReplace_Op, true); // AA here forces shader clips in drawClippedGeom() 196 canvas->clipRect(r, SkRegion::kReplace_Op, true); // AA here forces shader clips in drawClippedGeom() 202 canvas->clipRect(r, SkRegion::kReplace_Op, true); // AA here forces shader clips in drawClippedGeom()
|
/external/pdfium/fpdfsdk/src/ |
D | fpdf_transformpage.cpp | 92 FS_RECTF* clipRect) { in FPDFPage_TransFormWithClip() argument 99 CFX_FloatRect rect(clipRect->left, clipRect->bottom, clipRect->right, in FPDFPage_TransFormWithClip() 100 clipRect->top); in FPDFPage_TransFormWithClip()
|