Home
last modified time | relevance | path

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

12345

/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_clip.c126 const struct clip_stage *clipper = clip_stage(stage); in copy_flat() local
128 for (i = 0; i < clipper->num_const_attribs; i++) { in copy_flat()
129 const uint attr = clipper->const_attribs[i]; in copy_flat()
251 const struct clip_stage *clipper = clip_stage(stage); in emit_poly() local
291 tri_null = is_tri_null(clipper, &header); in emit_poly()
321 if (clipper->cv_attr >= 0) { in emit_poly()
323 header.v[j]->data[clipper->cv_attr][0], in emit_poly()
324 header.v[j]->data[clipper->cv_attr][1], in emit_poly()
325 header.v[j]->data[clipper->cv_attr][2], in emit_poly()
326 header.v[j]->data[clipper->cv_attr][3]); in emit_poly()
[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/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 …]
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.cpp168 Clipper<SIMD256, 3> clipper(workerId, pDC); in ClipTriangles() local
169 clipper.ExecuteStage(pa, prims, primMask, primId, viewportIdx, rtIdx); in ClipTriangles()
178 Clipper<SIMD256, 2> clipper(workerId, pDC); in ClipLines() local
179 clipper.ExecuteStage(pa, prims, primMask, primId, viewportIdx, rtIdx); in ClipLines()
188 Clipper<SIMD256, 1> clipper(workerId, pDC); in ClipPoints() local
189 clipper.ExecuteStage(pa, prims, primMask, primId, viewportIdx, rtIdx); in ClipPoints()
202 Clipper<SIMD512, VERTS_PER_PRIM> clipper(workerId, pDC); in ClipTriangles_simd16() local
205 clipper.ExecuteStage(pa, prims, primMask, primId, viewportIdx, rtIdx); in ClipTriangles_simd16()
218 Clipper<SIMD512, VERTS_PER_PRIM> clipper(workerId, pDC); in ClipLines_simd16() local
221 clipper.ExecuteStage(pa, prims, primMask, primId, viewportIdx, rtIdx); in ClipLines_simd16()
[all …]
/external/swiftshader/src/WSI/
DFrameBufferDD.cpp97 IDirectDrawClipper *clipper; in createSurfaces() local
127 directDraw->CreateClipper(0, &clipper, 0); in createSurfaces()
128 clipper->SetHWnd(0, windowHandle); in createSurfaces()
129 frontBuffer->SetClipper(clipper); in createSurfaces()
130 clipper->Release(); in createSurfaces()
169 IDirectDrawClipper *clipper; in updateClipper() local
170 frontBuffer->GetClipper(&clipper); in updateClipper()
171 clipper->SetHWnd(0, window); in updateClipper()
172 clipper->Release(); in updateClipper()
/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/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()
DSkScan_AntiPath.cpp816 SkScanClipper clipper(blitter, clipRgn, ir); in AntiFillPath() local
818 if (clipper.getBlitter() == nullptr) { // clipped out in AntiFillPath()
826 SkASSERT(clipper.getClipRect() == nullptr || in AntiFillPath()
827 *clipper.getClipRect() == clipRgn->getBounds()); in AntiFillPath()
830 blitter = clipper.getBlitter(); in AntiFillPath()
/external/skia/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.cpp388 SkRegion::Cliperator clipper(clip, mask.fBounds); in blitMaskRegion() local
390 while (!clipper.done()) { in blitMaskRegion()
391 const SkIRect& cr = clipper.rect(); in blitMaskRegion()
393 clipper.next(); in blitMaskRegion()
398 SkRegion::Cliperator clipper(clip, rect); in blitRectRegion() local
400 while (!clipper.done()) { in blitRectRegion()
401 const SkIRect& cr = clipper.rect(); in blitRectRegion()
403 clipper.next(); in blitRectRegion()
DSkScan_AntiPath.cpp816 SkScanClipper clipper(blitter, clipRgn, ir); in AntiFillPath() local
818 if (clipper.getBlitter() == nullptr) { // clipped out in AntiFillPath()
826 SkASSERT(clipper.getClipRect() == nullptr || in AntiFillPath()
827 *clipper.getClipRect() == clipRgn->getBounds()); in AntiFillPath()
830 blitter = clipper.getBlitter(); in AntiFillPath()
/external/swiftshader/src/Device/
DRenderer.cpp127 clipper = new Clipper; in Renderer()
188 delete clipper; in ~Renderer()
189 clipper = nullptr; in ~Renderer()
1315 if(!clipper->clip(polygon, clipFlagsOr, draw)) in setupTriangles()
1437 C[0] = clipper->computeClipFlags(P[0]); in setupLine()
1441 C[1] = clipper->computeClipFlags(P[1]); in setupLine()
1445 C[2] = clipper->computeClipFlags(P[2]); in setupLine()
1449 C[3] = clipper->computeClipFlags(P[3]); in setupLine()
1459 if(!clipper->clip(polygon, clipFlagsOr, draw)) in setupLine()
1489 C[0] = clipper->computeClipFlags(P[0]); in setupLine()
[all …]
/external/swiftshader/src/Renderer/
DRenderer.cpp150 clipper = new Clipper(symmetricNormalizedDepth); in Renderer()
214 delete clipper; in ~Renderer()
215 clipper = nullptr; in ~Renderer()
1592 if(!clipper->clip(polygon, clipFlagsOr, draw)) in setupSolidTriangles()
1815 C[0] = clipper->computeClipFlags(P[0]); in setupLine()
1819 C[1] = clipper->computeClipFlags(P[1]); in setupLine()
1823 C[2] = clipper->computeClipFlags(P[2]); in setupLine()
1827 C[3] = clipper->computeClipFlags(P[3]); in setupLine()
1837 if(!clipper->clip(polygon, clipFlagsOr, draw)) in setupLine()
1867 C[0] = clipper->computeClipFlags(P[0]); in setupLine()
[all …]
/external/skia/docs/
DSkRegion_Reference.bmh293 SkRegion::Cliperator clipper(region, {0, 0, 2, 3});
294 auto r = clipper.rect();
313 SkRegion::Cliperator clipper(region, {0, 0, 5, 5});
314 SkDebugf("%14s done=%s\n", label, clipper.done() ? "true" : "false");
340 SkRegion::Cliperator clipper(region, {0, 3, 8, 7});
342 auto r2 = clipper.rect();
344 clipper.next();
345 } while (!clipper.done());
365 SkRegion::Cliperator clipper(region, {0, 0, 5, 3});
366 auto r = clipper.rect();

12345