Home
last modified time | relevance | path

Searched refs:clip (Results 1 – 25 of 571) sorted by relevance

12345678910>>...23

/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_clip_state.c44 sizeof(*vp), 32, &brw->clip.vp_offset); in upload_clip_vp()
60 struct brw_clip_unit_state *clip; in brw_upload_clip_unit() local
69 clip = brw_state_batch(brw, AUB_TRACE_CLIP_STATE, in brw_upload_clip_unit()
70 sizeof(*clip), 32, &brw->clip.state_offset); in brw_upload_clip_unit()
71 memset(clip, 0, sizeof(*clip)); in brw_upload_clip_unit()
74 clip->thread0.grf_reg_count = (ALIGN(brw->clip.prog_data->total_grf, 16) / in brw_upload_clip_unit()
76 clip->thread0.kernel_start_pointer = in brw_upload_clip_unit()
78 brw->clip.state_offset + in brw_upload_clip_unit()
80 brw->clip.prog_offset + in brw_upload_clip_unit()
81 (clip->thread0.grf_reg_count << 1)) >> 6; in brw_upload_clip_unit()
[all …]
/external/skia/src/core/
DSkEdgeClipper.cpp13 static bool quick_reject(const SkRect& bounds, const SkRect& clip) { in quick_reject() argument
14 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop; in quick_reject()
46 bool SkEdgeClipper::clipLine(SkPoint p0, SkPoint p1, const SkRect& clip) { in clipLine() argument
52 int lineCount = SkLineClipper::ClipLine(pts, clip, lines, fCanCullToTheRight); in clipLine()
93 static void chop_quad_in_Y(SkPoint pts[3], const SkRect& clip) { in chop_quad_in_Y() argument
98 if (pts[0].fY < clip.fTop) { in chop_quad_in_Y()
99 if (chopMonoQuadAtY(pts, clip.fTop, &t)) { in chop_quad_in_Y()
103 tmp[2].fY = clip.fTop; in chop_quad_in_Y()
104 clamp_ge(tmp[3].fY, clip.fTop); in chop_quad_in_Y()
112 if (pts[i].fY < clip.fTop) { in chop_quad_in_Y()
[all …]
DSkLineClipper.cpp77 bool SkLineClipper::IntersectLine(const SkPoint src[2], const SkRect& clip, in IntersectLine() argument
82 if (containsNoEmptyCheck(clip, bounds)) { in IntersectLine()
90 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || in IntersectLine()
91 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || in IntersectLine()
92 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || in IntersectLine()
93 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) { in IntersectLine()
111 if (tmp[index0].fY < clip.fTop) { in IntersectLine()
112 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop); in IntersectLine()
114 if (tmp[index1].fY > clip.fBottom) { in IntersectLine()
115 tmp[index1].set(sect_with_horizontal(src, clip.fBottom), clip.fBottom); in IntersectLine()
[all …]
DSkScan.cpp28 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip, in FillIRect() argument
31 if (clip) { in FillIRect()
32 if (clip->isRect()) { in FillIRect()
33 const SkIRect& clipBounds = clip->getBounds(); in FillIRect()
44 SkRegion::Cliperator cliper(*clip, r); in FillIRect()
58 void SkScan::FillXRect(const SkXRect& xr, const SkRegion* clip, in FillXRect() argument
63 SkScan::FillIRect(r, clip, blitter); in FillXRect()
66 void SkScan::FillRect(const SkRect& r, const SkRegion* clip, in FillRect() argument
71 SkScan::FillIRect(ir, clip, blitter); in FillRect()
76 void SkScan::FillIRect(const SkIRect& r, const SkRasterClip& clip, in FillIRect() argument
[all …]
DSkScan_Antihair.cpp305 const SkIRect* clip, SkBlitter* blitter) { in do_anti_hairline() argument
329 do_anti_hairline(x0, y0, hx, hy, clip, blitter); in do_anti_hairline()
330 do_anti_hairline(hx, hy, x1, y1, clip, blitter); in do_anti_hairline()
374 if (clip){ in do_anti_hairline()
375 if (istart >= clip->fRight || istop <= clip->fLeft) { in do_anti_hairline()
378 if (istart < clip->fLeft) { in do_anti_hairline()
379 fstart += slope * (clip->fLeft - istart); in do_anti_hairline()
380 istart = clip->fLeft; in do_anti_hairline()
388 if (istop > clip->fRight) { in do_anti_hairline()
389 istop = clip->fRight; in do_anti_hairline()
[all …]
DSkScan_Hairline.cpp43 void SkScan::HairLineRgn(const SkPoint array[], int arrayCount, const SkRegion* clip, in HairLineRgn() argument
52 if (clip) { in HairLineRgn()
53 clipBounds.set(clip->getBounds()); in HairLineRgn()
69 if (clip && !SkLineClipper::IntersectLine(pts, clipBounds, pts)) { in HairLineRgn()
83 if (clip) { in HairLineRgn()
87 const SkIRect& bounds = clip->getBounds(); in HairLineRgn()
103 if (!clip->isRect() || !clipR.contains(ptsR)) { in HairLineRgn()
104 blitter = clipper.apply(origBlitter, clip); in HairLineRgn()
147 void SkScan::HairRect(const SkRect& rect, const SkRasterClip& clip, in HairRect() argument
156 if (clip.quickReject(r)) { in HairRect()
[all …]
DSkRasterClip.cpp227 bool SkRasterClip::setPath(const SkPath& path, const SkRegion& clip, bool doAA) { in setPath() argument
231 (void)fBW.setPath(path, clip); in setPath()
238 (void)fAA.setPath(path, &clip, doAA); in setPath()
282 SkRasterClip clip; in op() local
283 clip.setPath(devPath, base, doAA); in op()
284 return this->op(clip, op); in op()
292 SkRasterClip clip; in op() local
293 clip.setPath(devPath, base, doAA); in op()
294 return this->op(clip, op); in op()
299 bool SkRasterClip::setPath(const SkPath& path, const SkIRect& clip, bool doAA) { in setPath() argument
[all …]
DSkBlitter.cpp83 void SkBlitter::blitCoverageDeltas(SkCoverageDeltaList* deltas, const SkIRect& clip, in blitCoverageDeltas() argument
88 int runSize = clip.width() + 1; // +1 so we can set runs[clip.width()] = 0 in blitCoverageDeltas()
91 runs[clip.width()] = 0; // we must set the last run to 0 so blitAntiH can stop there in blitCoverageDeltas()
94 SkCoverageDeltaMask::CanHandle(SkIRect::MakeLTRB(0, 0, clip.width(), 1)); in blitCoverageDeltas()
98 int top = SkTMax(deltas->top(), clip.fTop); in blitCoverageDeltas()
99 int bottom = SkTMin(deltas->bottom(), clip.fBottom); in blitCoverageDeltas()
112 if (canUseMask && !deltas->sorted(y) && deltas->count(y) << 3 >= clip.width()) { in blitCoverageDeltas()
113 SkIRect rowIR = SkIRect::MakeLTRB(clip.fLeft, y, clip.fRight, y + 1); in blitCoverageDeltas()
129 int lastX = clip.fLeft; // init x to clip.fLeft in blitCoverageDeltas()
133 for(; i < deltas->count(y) && deltas->getDelta(y, i).fX < clip.fLeft; ++i); in blitCoverageDeltas()
[all …]
/external/skqp/src/core/
DSkEdgeClipper.cpp13 static bool quick_reject(const SkRect& bounds, const SkRect& clip) { in quick_reject() argument
14 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop; in quick_reject()
46 bool SkEdgeClipper::clipLine(SkPoint p0, SkPoint p1, const SkRect& clip) { in clipLine() argument
52 int lineCount = SkLineClipper::ClipLine(pts, clip, lines, fCanCullToTheRight); in clipLine()
93 static void chop_quad_in_Y(SkPoint pts[3], const SkRect& clip) { in chop_quad_in_Y() argument
98 if (pts[0].fY < clip.fTop) { in chop_quad_in_Y()
99 if (chopMonoQuadAtY(pts, clip.fTop, &t)) { in chop_quad_in_Y()
103 tmp[2].fY = clip.fTop; in chop_quad_in_Y()
104 clamp_ge(tmp[3].fY, clip.fTop); in chop_quad_in_Y()
112 if (pts[i].fY < clip.fTop) { in chop_quad_in_Y()
[all …]
DSkLineClipper.cpp77 bool SkLineClipper::IntersectLine(const SkPoint src[2], const SkRect& clip, in IntersectLine() argument
82 if (containsNoEmptyCheck(clip, bounds)) { in IntersectLine()
90 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || in IntersectLine()
91 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || in IntersectLine()
92 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || in IntersectLine()
93 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) { in IntersectLine()
111 if (tmp[index0].fY < clip.fTop) { in IntersectLine()
112 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop); in IntersectLine()
114 if (tmp[index1].fY > clip.fBottom) { in IntersectLine()
115 tmp[index1].set(sect_with_horizontal(src, clip.fBottom), clip.fBottom); in IntersectLine()
[all …]
DSkScan.cpp28 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip, in FillIRect() argument
31 if (clip) { in FillIRect()
32 if (clip->isRect()) { in FillIRect()
33 const SkIRect& clipBounds = clip->getBounds(); in FillIRect()
44 SkRegion::Cliperator cliper(*clip, r); in FillIRect()
58 void SkScan::FillXRect(const SkXRect& xr, const SkRegion* clip, in FillXRect() argument
63 SkScan::FillIRect(r, clip, blitter); in FillXRect()
66 void SkScan::FillRect(const SkRect& r, const SkRegion* clip, in FillRect() argument
71 SkScan::FillIRect(ir, clip, blitter); in FillRect()
76 void SkScan::FillIRect(const SkIRect& r, const SkRasterClip& clip, in FillIRect() argument
[all …]
DSkScan_Antihair.cpp305 const SkIRect* clip, SkBlitter* blitter) { in do_anti_hairline() argument
329 do_anti_hairline(x0, y0, hx, hy, clip, blitter); in do_anti_hairline()
330 do_anti_hairline(hx, hy, x1, y1, clip, blitter); in do_anti_hairline()
374 if (clip){ in do_anti_hairline()
375 if (istart >= clip->fRight || istop <= clip->fLeft) { in do_anti_hairline()
378 if (istart < clip->fLeft) { in do_anti_hairline()
379 fstart += slope * (clip->fLeft - istart); in do_anti_hairline()
380 istart = clip->fLeft; in do_anti_hairline()
388 if (istop > clip->fRight) { in do_anti_hairline()
389 istop = clip->fRight; in do_anti_hairline()
[all …]
DSkScan_Hairline.cpp43 void SkScan::HairLineRgn(const SkPoint array[], int arrayCount, const SkRegion* clip, in HairLineRgn() argument
52 if (clip) { in HairLineRgn()
53 clipBounds.set(clip->getBounds()); in HairLineRgn()
69 if (clip && !SkLineClipper::IntersectLine(pts, clipBounds, pts)) { in HairLineRgn()
83 if (clip) { in HairLineRgn()
87 const SkIRect& bounds = clip->getBounds(); in HairLineRgn()
103 if (!clip->isRect() || !clipR.contains(ptsR)) { in HairLineRgn()
104 blitter = clipper.apply(origBlitter, clip); in HairLineRgn()
147 void SkScan::HairRect(const SkRect& rect, const SkRasterClip& clip, in HairRect() argument
156 if (clip.quickReject(r)) { in HairRect()
[all …]
DSkRasterClip.cpp227 bool SkRasterClip::setPath(const SkPath& path, const SkRegion& clip, bool doAA) { in setPath() argument
231 (void)fBW.setPath(path, clip); in setPath()
238 (void)fAA.setPath(path, &clip, doAA); in setPath()
282 SkRasterClip clip; in op() local
283 clip.setPath(devPath, base, doAA); in op()
284 return this->op(clip, op); in op()
292 SkRasterClip clip; in op() local
293 clip.setPath(devPath, base, doAA); in op()
294 return this->op(clip, op); in op()
299 bool SkRasterClip::setPath(const SkPath& path, const SkIRect& clip, bool doAA) { in setPath() argument
[all …]
DSkBlitter.cpp82 void SkBlitter::blitCoverageDeltas(SkCoverageDeltaList* deltas, const SkIRect& clip, in blitCoverageDeltas() argument
84 int runSize = clip.width() + 1; // +1 so we can set runs[clip.width()] = 0 in blitCoverageDeltas()
88 runs[clip.width()] = 0; // we must set the last run to 0 so blitAntiH can stop there in blitCoverageDeltas()
91 SkCoverageDeltaMask::CanHandle(SkIRect::MakeLTRB(0, 0, clip.width(), 1)); in blitCoverageDeltas()
105 if (canUseMask && !deltas->sorted(y) && deltas->count(y) << 3 >= clip.width()) { in blitCoverageDeltas()
106 SkIRect rowIR = SkIRect::MakeLTRB(clip.fLeft, y, clip.fRight, y + 1); in blitCoverageDeltas()
122 int lastX = clip.fLeft; // init x to clip.fLeft in blitCoverageDeltas()
126 for(; i < deltas->count(y) && deltas->getDelta(y, i).fX < clip.fLeft; ++i); in blitCoverageDeltas()
127 for(; i < deltas->count(y) && deltas->getDelta(y, i).fX < clip.fRight; ++i) { in blitCoverageDeltas()
133 alphas[lastX - clip.fLeft] = alpha; // set alpha at lastX in blitCoverageDeltas()
[all …]
/external/skia/tests/
DMatrixClipCollapseTest.cpp141 typedef void (*PFEmitMC)(SkCanvas* canvas, MatType mat, ClipType clip,
145 ClipType clip, DrawOpType draw,
148 ClipType clip, PFEmitBody emitBody, DrawOpType draw,
154 static void emit_clip(SkCanvas* canvas, ClipType clip) { in emit_clip() argument
155 switch (clip) { in emit_clip()
194 static void add_clip(ClipType clip, MatType mat, SkTDArray<DrawType>* expected) { in add_clip() argument
200 switch (clip) { in add_clip()
325 static void emit_clip_and_mat(SkCanvas* canvas, MatType mat, ClipType clip, in emit_clip_and_mat() argument
328 emit_clip(canvas, clip); in emit_clip_and_mat()
336 add_clip(clip, mat, expected); in emit_clip_and_mat()
[all …]
/external/skqp/tests/
DMatrixClipCollapseTest.cpp141 typedef void (*PFEmitMC)(SkCanvas* canvas, MatType mat, ClipType clip,
145 ClipType clip, DrawOpType draw,
148 ClipType clip, PFEmitBody emitBody, DrawOpType draw,
154 static void emit_clip(SkCanvas* canvas, ClipType clip) { in emit_clip() argument
155 switch (clip) { in emit_clip()
194 static void add_clip(ClipType clip, MatType mat, SkTDArray<DrawType>* expected) { in add_clip() argument
200 switch (clip) { in add_clip()
325 static void emit_clip_and_mat(SkCanvas* canvas, MatType mat, ClipType clip, in emit_clip_and_mat() argument
328 emit_clip(canvas, clip); in emit_clip_and_mat()
336 add_clip(clip, mat, expected); in emit_clip_and_mat()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_blit.c64 } clip; in st_BlitFramebuffer() local
73 clip.srcX0 = srcX0; in st_BlitFramebuffer()
74 clip.srcY0 = srcY0; in st_BlitFramebuffer()
75 clip.srcX1 = srcX1; in st_BlitFramebuffer()
76 clip.srcY1 = srcY1; in st_BlitFramebuffer()
77 clip.dstX0 = dstX0; in st_BlitFramebuffer()
78 clip.dstY0 = dstY0; in st_BlitFramebuffer()
79 clip.dstX1 = dstX1; in st_BlitFramebuffer()
80 clip.dstY1 = dstY1; in st_BlitFramebuffer()
89 &clip.srcX0, &clip.srcY0, &clip.srcX1, &clip.srcY1, in st_BlitFramebuffer()
[all …]
Dst_atom_clip.c46 struct pipe_clip_state clip; in update_clip() local
50 STATIC_ASSERT(sizeof(clip.ucp) <= sizeof(ctx->Transform._ClipUserPlane)); in update_clip()
62 memcpy(clip.ucp, in update_clip()
64 : ctx->Transform._ClipUserPlane, sizeof(clip.ucp)); in update_clip()
66 if (memcmp(&st->state.clip, &clip, sizeof(clip)) != 0) { in update_clip()
67 st->state.clip = clip; in update_clip()
68 st->pipe->set_clip_state(st->pipe, &clip); in update_clip()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowClipboardManager.java24 private ClipData clip; field in ShadowClipboardManager
27 public void setPrimaryClip(ClipData clip) { in setPrimaryClip() argument
29 if (clip != null) { in setPrimaryClip()
30 clip.prepareToLeaveProcess(true); in setPrimaryClip()
33 if (clip != null) { in setPrimaryClip()
34 ReflectionHelpers.callInstanceMethod(ClipData.class, clip, "prepareToLeaveProcess"); in setPrimaryClip()
38 this.clip = clip; in setPrimaryClip()
47 return clip; in getPrimaryClip()
52 return clip == null ? null : clip.getDescription(); in getPrimaryClipDescription()
57 return clip != null; in hasPrimaryClip()
/external/skia/src/gpu/
DGrRenderTargetContext.cpp61 void addDrawOp(const GrClip& clip, std::unique_ptr<GrAtlasTextOp> op) { in addDrawOp() argument
62 fRenderTargetContext->addDrawOp(clip, std::move(op)); in addDrawOp()
65 void drawPath(const GrClip& clip, const SkPath& path, const SkPaint& paint, in drawPath() argument
69 clip, path, paint, viewMatrix, pathMatrix, clipBounds, in drawPath()
220 void GrRenderTargetContext::drawText(const GrClip& clip, const SkPaint& skPaint, in drawText() argument
230 atlasTextContext->drawText(fContext, fTextTarget.get(), clip, skPaint, viewMatrix, in drawText()
234 void GrRenderTargetContext::drawPosText(const GrClip& clip, const SkPaint& paint, in drawPosText() argument
245 atlasTextContext->drawPosText(fContext, fTextTarget.get(), clip, paint, viewMatrix, in drawPosText()
250 void GrRenderTargetContext::drawTextBlob(const GrClip& clip, const SkPaint& paint, in drawTextBlob() argument
260 atlasTextContext->drawTextBlob(fContext, fTextTarget.get(), clip, paint, viewMatrix, in drawTextBlob()
[all …]
/external/skqp/src/gpu/
DGrRenderTargetContext.cpp61 void addDrawOp(const GrClip& clip, std::unique_ptr<GrAtlasTextOp> op) { in addDrawOp() argument
62 fRenderTargetContext->addDrawOp(clip, std::move(op)); in addDrawOp()
65 void drawPath(const GrClip& clip, const SkPath& path, const SkPaint& paint, in drawPath() argument
69 clip, path, paint, viewMatrix, pathMatrix, clipBounds, in drawPath()
218 void GrRenderTargetContext::drawText(const GrClip& clip, const SkPaint& skPaint, in drawText() argument
228 atlasTextContext->drawText(fContext, fTextTarget.get(), clip, skPaint, viewMatrix, in drawText()
232 void GrRenderTargetContext::drawPosText(const GrClip& clip, const SkPaint& paint, in drawPosText() argument
243 atlasTextContext->drawPosText(fContext, fTextTarget.get(), clip, paint, viewMatrix, in drawPosText()
248 void GrRenderTargetContext::drawTextBlob(const GrClip& clip, const SkPaint& paint, in drawTextBlob() argument
258 atlasTextContext->drawTextBlob(fContext, fTextTarget.get(), clip, paint, viewMatrix, in drawTextBlob()
[all …]
/external/tensorflow/tensorflow/contrib/nn/python/ops/
Dscaled_softplus.py39 def scaled_softplus(x, alpha, clip=None, name=None): argument
61 clipping = clip is not None
63 [x, alpha] + ([clip] if clipping else [])):
70 clip = ops.convert_to_tensor(clip, dtype=dtype, name='clip')
71 y = math_ops.minimum(y, clip)
82 clip = op.inputs[3]
83 unclipped = math_ops.cast(y < clip, g.dtype)
84 clip_grad = [_reduce_and_reshape_grad(g * (1. - unclipped), clip)]
102 def _forward_helper_clip(y, x, alpha, clip): argument
103 del x, alpha, clip # Unused.
[all …]
/external/mesa3d/src/gallium/drivers/ilo/core/
Dilo_state_raster.c35 const struct ilo_state_raster_clip_info *clip = &info->clip; in raster_validate_gen6_clip() local
39 assert(clip->viewport_count); in raster_validate_gen6_clip()
48 assert(!(clip->user_cull_enables & clip->user_clip_enables)); in raster_validate_gen6_clip()
51 assert(clip->z_near_enable == clip->z_far_enable); in raster_validate_gen6_clip()
61 const struct ilo_state_raster_clip_info *clip = &info->clip; in raster_set_gen6_3DSTATE_CLIP() local
72 dw1 = clip->user_cull_enables << GEN6_CLIP_DW1_UCP_CULL_ENABLES__SHIFT; in raster_set_gen6_3DSTATE_CLIP()
74 if (clip->stats_enable) in raster_set_gen6_3DSTATE_CLIP()
96 dw2 = clip->user_clip_enables << GEN6_CLIP_DW2_UCP_CLIP_ENABLES__SHIFT | in raster_set_gen6_3DSTATE_CLIP()
99 if (clip->clip_enable) in raster_set_gen6_3DSTATE_CLIP()
102 if (clip->z_near_zero) in raster_set_gen6_3DSTATE_CLIP()
[all …]
/external/pdfium/core/fxge/dib/
Dfx_dib_main.cpp53 FX_RECT FXDIB_SwapClipBox(FX_RECT& clip, in FXDIB_SwapClipBox() argument
60 rect.left = height - clip.top; in FXDIB_SwapClipBox()
61 rect.right = height - clip.bottom; in FXDIB_SwapClipBox()
63 rect.left = clip.top; in FXDIB_SwapClipBox()
64 rect.right = clip.bottom; in FXDIB_SwapClipBox()
67 rect.top = width - clip.left; in FXDIB_SwapClipBox()
68 rect.bottom = width - clip.right; in FXDIB_SwapClipBox()
70 rect.top = clip.left; in FXDIB_SwapClipBox()
71 rect.bottom = clip.right; in FXDIB_SwapClipBox()

12345678910>>...23