Home
last modified time | relevance | path

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

1234567

/external/skia/tests/
DClipCubicTest.cpp81 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 …]
DCanvasStateTest.cpp163 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()
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()
DRecordingXfermodeTest.cpp37 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()
DClipBoundsTest.cpp36 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()
DCanvasStateHelpers.cpp42 SkRect clipRect = SkRect::MakeLTRB(SkIntToScalar(left), SkIntToScalar(top), in complex_clips_draw() local
44 canvas->clipRect(clipRect, (SkRegion::Op) clipOp); in complex_clips_draw()
DPathOpsBuilderTest.cpp211 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()
DRecordOptsTest.cpp42 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()
DBlitMaskClip.cpp57 SkIRect clipRect = {left, top, right, bottom}; in DEF_TEST() local
58 tb.blitMask(mask, clipRect); in DEF_TEST()
/external/skia/gm/
Dimagesource.cpp31 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()
Dblurquickreject.cpp37 SkRect clipRect = SkRect::MakeXYWH(0, 0, kBoxSize, kBoxSize); in onDraw() local
66 canvas->drawRect(clipRect, hairlinePaint); in onDraw()
67 canvas->clipRect(clipRect); in onDraw()
Dxfermodeimagefilter.cpp119 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()
Dbigblurs.cpp79 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()
Doffsetimagefilter.cpp75 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()
Dmegalooper.cpp94 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()
Dinversepaths.cpp72 SkRect clipRect = SkRect::MakeLTRB(slideBoundary, slideBoundary, variable
103 canvas->drawRect(clipRect, clipPaint);
106 canvas->clipRect(clipRect);
Ddropshadowimagefilter.cpp21 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()
Dmixedtextblobs.cpp20 const SkRect& clipRect) { in draw_blob() argument
27 canvas->drawRect(clipRect, clipHairline); in draw_blob()
30 canvas->clipRect(clipRect); in draw_blob()
Dpictureimagefilter.cpp45 static void fillRectFiltered(SkCanvas* canvas, const SkRect& clipRect, SkImageFilter* filter) { in fillRectFiltered() argument
49 canvas->clipRect(clipRect); in fillRectFiltered()
Dclip_strokerect.cpp39 canvas->clipRect(rect, SkRegion::kReplace_Op, true); in onDraw()
57 canvas->clipRect(rect2, SkRegion::kReplace_Op, true); in onDraw()
Dblurredclippedcircle.cpp48 canvas->clipRect(clipRect1, SkRegion::kIntersect_Op, false); in onDraw()
52 canvas->clipRect(clipRect1, SkRegion::kIntersect_Op, false); in onDraw()
/external/skia/src/core/
DSkScan_Path.cpp429 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/
DSampleManyRects.cpp58 SkRect clipRect = rect; in onDrawContent() local
61 clipRect.outset(10, 10); in onDrawContent()
62 canvas->clipRect(clipRect); in onDrawContent()
DSampleClipDrawMatch.cpp167 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/
Dfpdf_transformpage.cpp92 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()

1234567