Home
last modified time | relevance | path

Searched refs:clipper (Results 1 – 25 of 115) sorted by relevance

12345

/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_clip.c121 const struct clip_stage *clipper = clip_stage(stage); in copy_flat() local
123 for (i = 0; i < clipper->num_const_attribs; i++) { in copy_flat()
124 const uint attr = clipper->const_attribs[i]; in copy_flat()
222 const struct clip_stage *clipper = clip_stage(stage); in emit_poly() local
276 if (clipper->cv_attr >= 0) { in emit_poly()
278 header.v[j]->data[clipper->cv_attr][0], in emit_poly()
279 header.v[j]->data[clipper->cv_attr][1], in emit_poly()
280 header.v[j]->data[clipper->cv_attr][2], in emit_poly()
281 header.v[j]->data[clipper->cv_attr][3]); in emit_poly()
311 static inline float getclipdist(const struct clip_stage *clipper, in getclipdist() argument
[all …]
/external/skia/tests/
DClipCubicTest.cpp87 SkCubicClipper clipper; in DEF_TEST() local
95 clipper.setClip(clipRect); in DEF_TEST()
96 success = clipper.clipCubic(crv, clipped); in DEF_TEST()
103 clipper.setClip(clipRect); in DEF_TEST()
104 success = clipper.clipCubic(crv, clipped); in DEF_TEST()
111 clipper.setClip(clipRect); in DEF_TEST()
112 success = clipper.clipCubic(crv, clipped); in DEF_TEST()
119 clipper.setClip(clipRect); in DEF_TEST()
120 success = clipper.clipCubic(crv, clipped); in DEF_TEST()
125 clipper.setClip(clipRect); in DEF_TEST()
[all …]
/external/skqp/tests/
DClipCubicTest.cpp87 SkCubicClipper clipper; in DEF_TEST() local
95 clipper.setClip(clipRect); in DEF_TEST()
96 success = clipper.clipCubic(crv, clipped); in DEF_TEST()
103 clipper.setClip(clipRect); in DEF_TEST()
104 success = clipper.clipCubic(crv, clipped); in DEF_TEST()
111 clipper.setClip(clipRect); in DEF_TEST()
112 success = clipper.clipCubic(crv, clipped); in DEF_TEST()
119 clipper.setClip(clipRect); in DEF_TEST()
120 success = clipper.clipCubic(crv, clipped); in DEF_TEST()
125 clipper.setClip(clipRect); in DEF_TEST()
[all …]
DClipperTest.cpp59 SkEdgeClipper clipper(false); in test_edgeclipper() local
73 clipper.clipCubic(pts, clip); in test_edgeclipper()
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dclip.cpp189 Clipper<SIMD256, 3> clipper(workerId, pDC); in ClipRectangles() local
190 clipper.ExecuteStage(pa, prims, primMask, primId, viewportIdx, rtIdx); in ClipRectangles()
204 Clipper<SIMD256, 3> clipper(workerId, pDC); in ClipTriangles() local
205 clipper.ExecuteStage(pa, prims, primMask, primId, viewportIdx, rtIdx); in ClipTriangles()
219 Clipper<SIMD256, 2> clipper(workerId, pDC); in ClipLines() local
220 clipper.ExecuteStage(pa, prims, primMask, primId, viewportIdx, rtIdx); in ClipLines()
234 Clipper<SIMD256, 1> clipper(workerId, pDC); in ClipPoints() local
235 clipper.ExecuteStage(pa, prims, primMask, primId, viewportIdx, rtIdx); in ClipPoints()
256 Clipper<SIMD512, VERTS_PER_PRIM> clipper(workerId, pDC); in ClipRectangles_simd16() local
259 clipper.ExecuteStage(pa, prims, primMask, primId, viewportIdx, rtIdx); in ClipRectangles_simd16()
[all …]
/external/skia/docs/examples/
DRegion_Cliperator_next.cpp10 SkRegion::Cliperator clipper(region, {0, 3, 8, 7}); in draw() local
12 auto r2 = clipper.rect(); in draw()
14 clipper.next(); in draw()
15 } while (!clipper.done()); in draw()
DRegion_Cliperator_done.cpp8 SkRegion::Cliperator clipper(region, {0, 0, 5, 5}); in draw() local
9 SkDebugf("%14s done=%s\n", label, clipper.done() ? "true" : "false"); in draw()
DRegion_Cliperator_const_SkRegion_const_SkIRect.cpp9 SkRegion::Cliperator clipper(region, {0, 0, 2, 3}); in draw() local
10 auto r = clipper.rect(); in draw()
DRegion_Cliperator_rect.cpp8 SkRegion::Cliperator clipper(region, {0, 0, 5, 3}); in draw() local
9 auto r = clipper.rect(); in draw()
/external/skqp/src/core/
DSkDraw_text.cpp57 SkRegion::Cliperator clipper(fRC->bwRgn(), mask.fBounds); in paintMasks() local
59 if (!clipper.done()) { in paintMasks()
67 const SkIRect& cr = clipper.rect(); in paintMasks()
70 clipper.next(); in paintMasks()
71 } while (!clipper.done()); in paintMasks()
DSkEdgeBuilder.cpp349 SkEdgeClipper clipper(canCullToTheRight); in build() local
351 auto apply_clipper = [this, &clipper, &is_finite] { in build()
355 while ((verb = clipper.next(pts)) != SkPath::kDone_Verb) { in build()
378 if (clipper.clipLine(pts[0], pts[1], clip)) { in build()
383 if (clipper.clipQuad(pts, clip)) { in build()
391 if (clipper.clipQuad(quadPts, clip)) { in build()
398 if (clipper.clipCubic(pts, clip)) { in build()
DSkMaskFilter.cpp199 SkRegion::Cliperator clipper(wrapper.getRgn(), outerR); in draw_nine() local
201 if (!clipper.done()) { in draw_nine()
202 const SkIRect& cr = clipper.rect(); in draw_nine()
205 clipper.next(); in draw_nine()
206 } while (!clipper.done()); in draw_nine()
280 SkRegion::Cliperator clipper(wrapper.getRgn(), dstM.fBounds); in filterPath() local
282 if (!clipper.done()) { in filterPath()
283 const SkIRect& cr = clipper.rect(); in filterPath()
286 clipper.next(); in filterPath()
287 } while (!clipper.done()); in filterPath()
DSkScan_Path.cpp653 SkScanClipper clipper(blitter, clipPtr, ir, path.isInverseFillType(), irPreClipped); in FillPath() local
655 blitter = clipper.getBlitter(); in FillPath()
662 SkASSERT(clipper.getClipRect() == nullptr || in FillPath()
663 *clipper.getClipRect() == clipPtr->getBounds()); in FillPath()
665 0, clipper.getClipRect() == nullptr); in FillPath()
775 SkScanClipper clipper(blitter, clipRgn, ir); in FillTriangle() local
776 blitter = clipper.getBlitter(); in FillTriangle()
778 sk_fill_triangle(pts, clipper.getClipRect(), blitter, ir); in FillTriangle()
DSkScan_Antihair.cpp726 SkRegion::Cliperator clipper(*clip, outerBounds); in AntiFillXRect() local
727 const SkIRect& rr = clipper.rect(); in AntiFillXRect()
729 while (!clipper.done()) { in AntiFillXRect()
737 clipper.next(); in AntiFillXRect()
793 SkRegion::Cliperator clipper(*clip, outerBounds); in AntiFillRect() local
794 while (!clipper.done()) { in AntiFillRect()
795 newR.set(clipper.rect()); in AntiFillRect()
799 clipper.next(); in AntiFillRect()
938 SkBlitterClipper clipper; in AntiFrameRect() local
944 blitter = clipper.apply(blitter, clip, &outer); in AntiFrameRect()
DSkBlitter.cpp387 SkRegion::Cliperator clipper(clip, mask.fBounds); in blitMaskRegion() local
389 while (!clipper.done()) { in blitMaskRegion()
390 const SkIRect& cr = clipper.rect(); in blitMaskRegion()
392 clipper.next(); in blitMaskRegion()
397 SkRegion::Cliperator clipper(clip, rect); in blitRectRegion() local
399 while (!clipper.done()) { in blitRectRegion()
400 const SkIRect& cr = clipper.rect(); in blitRectRegion()
402 clipper.next(); in blitRectRegion()
/external/swiftshader/src/Main/
DFrameBufferDD.cpp97 IDirectDrawClipper *clipper; in createSurfaces() local
128 directDraw->CreateClipper(0, &clipper, 0); in createSurfaces()
129 clipper->SetHWnd(0, windowHandle); in createSurfaces()
130 frontBuffer->SetClipper(clipper); in createSurfaces()
131 clipper->Release(); in createSurfaces()
170 IDirectDrawClipper *clipper; in updateClipper() local
171 frontBuffer->GetClipper(&clipper); in updateClipper()
172 clipper->SetHWnd(0, window); in updateClipper()
173 clipper->Release(); in updateClipper()
/external/skia/src/core/
DSkDraw_text.cpp58 SkRegion::Cliperator clipper(fRC->bwRgn(), mask.fBounds); in paintMasks() local
60 if (!clipper.done()) { in paintMasks()
68 const SkIRect& cr = clipper.rect(); in paintMasks()
71 clipper.next(); in paintMasks()
72 } while (!clipper.done()); in paintMasks()
DSkEdgeClipper.cpp569 SkEdgeClipper clipper(canCullToTheRight); in ClipPath() local
574 if (clipper.clipLine(e.fPts[0], e.fPts[1], clip)) { in ClipPath()
575 consume(&clipper, e.fIsNewContour, ctx); in ClipPath()
579 if (clipper.clipQuad(e.fPts, clip)) { in ClipPath()
580 consume(&clipper, e.fIsNewContour, ctx); in ClipPath()
586 if (clipper.clipQuad(quadPts, clip)) { in ClipPath()
587 consume(&clipper, e.fIsNewContour, ctx); in ClipPath()
593 if (clipper.clipCubic(e.fPts, clip)) { in ClipPath()
594 consume(&clipper, e.fIsNewContour, ctx); in ClipPath()
DSkMaskFilter.cpp200 SkRegion::Cliperator clipper(wrapper.getRgn(), outerR); in draw_nine() local
202 if (!clipper.done()) { in draw_nine()
203 const SkIRect& cr = clipper.rect(); in draw_nine()
206 clipper.next(); in draw_nine()
207 } while (!clipper.done()); in draw_nine()
281 SkRegion::Cliperator clipper(wrapper.getRgn(), dstM.fBounds); in filterPath() local
283 if (!clipper.done()) { in filterPath()
284 const SkIRect& cr = clipper.rect(); in filterPath()
287 clipper.next(); in filterPath()
288 } while (!clipper.done()); in filterPath()
DSkScan_Path.cpp652 SkScanClipper clipper(blitter, clipPtr, ir, path.isInverseFillType(), irPreClipped); in FillPath() local
654 blitter = clipper.getBlitter(); in FillPath()
661 SkASSERT(clipper.getClipRect() == nullptr || in FillPath()
662 *clipper.getClipRect() == clipPtr->getBounds()); in FillPath()
664 0, clipper.getClipRect() == nullptr); in FillPath()
774 SkScanClipper clipper(blitter, clipRgn, ir); in FillTriangle() local
775 blitter = clipper.getBlitter(); in FillTriangle()
777 sk_fill_triangle(pts, clipper.getClipRect(), blitter, ir); in FillTriangle()
DSkScan_Antihair.cpp732 SkRegion::Cliperator clipper(*clip, outerBounds); in AntiFillXRect() local
733 const SkIRect& rr = clipper.rect(); in AntiFillXRect()
735 while (!clipper.done()) { in AntiFillXRect()
743 clipper.next(); in AntiFillXRect()
799 SkRegion::Cliperator clipper(*clip, outerBounds); in AntiFillRect() local
800 while (!clipper.done()) { in AntiFillRect()
801 newR.set(clipper.rect()); in AntiFillRect()
805 clipper.next(); in AntiFillRect()
944 SkBlitterClipper clipper; in AntiFrameRect() local
950 blitter = clipper.apply(blitter, clip, &outer); in AntiFrameRect()
DSkBlitter.cpp279 SkRegion::Cliperator clipper(clip, mask.fBounds); in blitMaskRegion() local
281 while (!clipper.done()) { in blitMaskRegion()
282 const SkIRect& cr = clipper.rect(); in blitMaskRegion()
284 clipper.next(); in blitMaskRegion()
289 SkRegion::Cliperator clipper(clip, rect); in blitRectRegion() local
291 while (!clipper.done()) { in blitRectRegion()
292 const SkIRect& cr = clipper.rect(); in blitRectRegion()
294 clipper.next(); in blitRectRegion()
DSkScan_AntiPath.cpp767 SkScanClipper clipper(blitter, clipRgn, ir); in AntiFillPath() local
769 if (clipper.getBlitter() == nullptr) { // clipped out in AntiFillPath()
776 SkASSERT(clipper.getClipRect() == nullptr || in AntiFillPath()
777 *clipper.getClipRect() == clipRgn->getBounds()); in AntiFillPath()
780 blitter = clipper.getBlitter(); in AntiFillPath()
/external/swiftshader/src/Renderer/
DRenderer.cpp150 clipper = new Clipper(symmetricNormalizedDepth); in Renderer()
217 delete clipper; in ~Renderer()
218 clipper = nullptr; in ~Renderer()
1593 if(!clipper->clip(polygon, clipFlagsOr, draw)) in setupSolidTriangles()
1818 C[0] = clipper->computeClipFlags(P[0]); in setupLine()
1822 C[1] = clipper->computeClipFlags(P[1]); in setupLine()
1826 C[2] = clipper->computeClipFlags(P[2]); in setupLine()
1830 C[3] = clipper->computeClipFlags(P[3]); in setupLine()
1840 if(!clipper->clip(polygon, clipFlagsOr, draw)) in setupLine()
1875 C[0] = clipper->computeClipFlags(P[0]); in setupLine()
[all …]
/external/mesa3d/src/imgui/
Dimgui_memory_editor.h236 ImGuiListClipper clipper(line_total_count, s.LineHeight);
237 const size_t visible_start_addr = clipper.DisplayStart * Cols;
238 const size_t visible_end_addr = clipper.DisplayEnd * Cols;
282 …for (int line_i = clipper.DisplayStart; line_i < clipper.DisplayEnd; line_i++) // display only vis…
429 clipper.End();

12345