/external/skia/tests/ |
D | ClipCubicTest.cpp | 80 SkIRect clipRect; in DEF_TEST() local 85 clipRect.set(-2, -2, 6, 14); in DEF_TEST() 86 clipper.setClip(clipRect); in DEF_TEST() 93 clipRect.set(-2, 0, 6, 14); in DEF_TEST() 94 clipper.setClip(clipRect); in DEF_TEST() 101 clipRect.set(-2, -2, 6, 12); in DEF_TEST() 102 clipper.setClip(clipRect); in DEF_TEST() 109 clipRect.set(-2, 14, 6, 20); in DEF_TEST() 110 clipper.setClip(clipRect); in DEF_TEST() 115 clipRect.set(-2, 1, 6, 14); in DEF_TEST() [all …]
|
D | CanvasStateTest.cpp | 156 SkIRect clipRect = layerRect; in DEF_TEST() local 157 clipRect.fRight = clipRect.fLeft + (clipRect.width() / 2) - (2*SPACER); in DEF_TEST() 158 clipRect.outset(SPACER, SPACER); in DEF_TEST() 160 SkIRect regionBounds = clipRect; in DEF_TEST() 161 regionBounds.offset(clipRect.width() + (2*SPACER), 0); in DEF_TEST() 225 bool success = drawFn(state, clipRect.fLeft, clipRect.fTop, in DEF_TEST() 226 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST() 232 complex_clips_draw(&canvas, clipRect.fLeft, clipRect.fTop, in DEF_TEST() 233 clipRect.fRight, clipRect.fBottom, clipOps[j], in DEF_TEST() 316 canvas.clipRect(SkRect::MakeWH(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT))); in DEF_TEST()
|
D | RecordPatternTest.cpp | 26 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 45 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 66 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 81 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 87 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 88 recorder.clipRect(SkRect::MakeWH(100, 100)); in DEF_TEST() 106 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 116 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 125 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 126 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 | 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 | 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() 237 recorder.clipRect(clip); in DEF_TEST() 273 recorder.clipRect(clip); in DEF_TEST() 285 recorder.clipRect(clip); in DEF_TEST()
|
D | ClipCacheTest.cpp | 68 SkRect clipRect(screen); in test_clip_bounds() local 69 clipRect.outset(10, 10); in test_clip_bounds() 74 stack.clipDevRect(clipRect, SkRegion::kReplace_Op, false); in test_clip_bounds()
|
/external/skia/gm/ |
D | bitmapsource.cpp | 43 static void fillRectFiltered(SkCanvas* canvas, const SkRect& clipRect, SkImageFilter* filter) { in fillRectFiltered() argument 47 canvas->clipRect(clipRect); in fillRectFiltered() 57 SkRect clipRect = SkRect::MakeXYWH(0, 0, 100, 100); in onDraw() local 66 fillRectFiltered(canvas, clipRect, bitmapSource); in onDraw() 70 fillRectFiltered(canvas, clipRect, bitmapSourceSrcRect); in onDraw() 74 fillRectFiltered(canvas, clipRect, bitmapSourceSrcRectDstRect); in onDraw() 78 fillRectFiltered(canvas, clipRect, bitmapSourceDstRectOnly); 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 | offsetimagefilter.cpp | 49 SkRect clipRect = SkRect::MakeWH( in drawClippedBitmap() local 51 canvas->clipRect(clipRect); in drawClippedBitmap() 65 if (clipRect.intersect(cropRectFloat)) { in drawClippedBitmap() 66 canvas->drawRect(clipRect, strokePaint); in drawClippedBitmap()
|
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 | 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 | xfermodeimagefilter.cpp | 53 canvas->clipRect(SkRect::MakeWH( in drawClippedBitmap() 63 canvas->clipRect(rect); in drawClippedPaint() 148 SkRect clipRect = SkRect::MakeWH(SkIntToScalar(fBitmap.width() + 4), in onDraw() local 159 drawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 169 drawClippedPaint(canvas, clipRect, paint, x, y); in onDraw() 193 drawClippedPaint(canvas, clipRect, paint, x, y); in onDraw()
|
D | inversepaths.cpp | 88 SkRect clipRect = SkRect::MakeLTRB(slideBoundary, slideBoundary, in onDraw() local 119 canvas->drawRect(clipRect, clipPaint); in onDraw() 122 canvas->clipRect(clipRect); in onDraw()
|
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 | 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 | clip_strokerect.cpp | 39 canvas->clipRect(rect, SkRegion::kReplace_Op, true); in onDraw() 57 canvas->clipRect(rect2, SkRegion::kReplace_Op, true); in onDraw()
|
D | spritebitmap.cpp | 38 canvas->clipRect(clipR); in draw_2_bitmaps() 49 canvas->clipRect(clipR); in draw_2_bitmaps()
|
/external/skia/src/core/ |
D | SkScan_Path.cpp | 397 void sk_fill_path(const SkPath& path, const SkIRect* clipRect, SkBlitter* blitter, in sk_fill_path() argument 406 int count = builder.build(path, clipRect, shiftEdgesUp, canCullToTheRight); in sk_fill_path() 455 if (clipRect && start_y < clipRect->fTop) { in sk_fill_path() 456 start_y = clipRect->fTop; in sk_fill_path() 458 if (clipRect && stop_y > clipRect->fBottom) { in sk_fill_path() 459 stop_y = clipRect->fBottom; in sk_fill_path() 476 if (clipRect) { in sk_fill_path() 477 rightEdge = clipRect->right(); in sk_fill_path() 621 const SkIRect* clipRect, SkEdge* list[]) { in build_tri_edges() argument 624 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 | 165 canvas->clipRect(create_rect(offset), SkRegion::kReplace_Op, useAA); in drawClippedGeom() 182 canvas->clipRect(r, SkRegion::kReplace_Op, true); // AA here forces shader clips in drawClippedGeom() 183 canvas->clipRect(create_rect(offset), SkRegion::kIntersect_Op, useAA); in drawClippedGeom() 188 canvas->clipRect(r, SkRegion::kReplace_Op, true); // AA here forces shader clips in drawClippedGeom() 194 canvas->clipRect(r, SkRegion::kReplace_Op, true); // AA here forces shader clips in drawClippedGeom() 200 canvas->clipRect(r, SkRegion::kReplace_Op, true); // AA here forces shader clips in drawClippedGeom()
|
/external/skia/src/gpu/ |
D | GrAtlasTextContext.h | 263 GrColor color, GrFontScaler*, const SkIRect& clipRect); 265 GrColor color, GrFontScaler*, const SkIRect& clipRect, SkScalar textRatio, 303 const SkIRect& clipRect); 308 SkScalar x, SkScalar y, const SkIRect& clipRect); 313 const SkPoint& offset, const SkIRect& clipRect); 318 SkScalar x, SkScalar y, const SkIRect& clipRect, 327 const SkPoint& offset, const SkIRect& clipRect, 342 SkDrawFilter* drawFilter, const SkIRect& clipRect, GrRenderTarget*,
|
D | GrAtlasTextContext.cpp | 388 SkIRect clipRect; in drawTextBlob() local 389 clip.getConservativeBounds(rt->width(), rt->height(), &clipRect); in drawTextBlob() 410 drawFilter, clipRect, rt, clip, grPaint); in drawTextBlob() 427 drawFilter, clipRect, rt, clip, grPaint); in drawTextBlob() 474 SkDrawFilter* drawFilter, const SkIRect& clipRect, in regenerateTextBlob() argument 532 x + offset.x(), y + offset.y(), clipRect, textRatio, in regenerateTextBlob() 541 scalarsPerPosition, dfOffset, clipRect, textRatio, in regenerateTextBlob() 549 scalarsPerPosition, dfOffset, clipRect, textRatio, in regenerateTextBlob() 557 clipRect); in regenerateTextBlob() 571 x + offset.x(), y + offset.y(), clipRect); in regenerateTextBlob() [all …]
|
/external/pdfium/fpdfsdk/src/ |
D | fpdf_transformpage.cpp | 78 …FPDF_BOOL STDCALL FPDFPage_TransFormWithClip(FPDF_PAGE page, FS_MATRIX* matrix, FS_RECTF* clipRect) in FPDFPage_TransFormWithClip() argument 85 CFX_FloatRect rect(clipRect->left, clipRect->bottom, clipRect->right, clipRect->top); in FPDFPage_TransFormWithClip()
|