/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | brw_clip_state.c | 41 struct brw_clip_unit_state *clip; local 43 clip = brw_state_batch(brw, AUB_TRACE_CLIP_STATE, 44 sizeof(*clip), 32, &brw->clip.state_offset); 45 memset(clip, 0, sizeof(*clip)); 48 clip->thread0.grf_reg_count = (ALIGN(brw->clip.prog_data->total_grf, 16) / 50 clip->thread0.kernel_start_pointer = 52 brw->clip [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
H A D | st_atom_clip.c | 42 /* Second state atom for user clip planes: 46 struct pipe_clip_state clip; local 50 STATIC_ASSERT(sizeof(clip.ucp) <= sizeof(ctx->Transform._ClipUserPlane)); 52 /* if we have a vertex shader that writes clip vertex we need to pass 59 memcpy(clip.ucp, 61 : ctx->Transform._ClipUserPlane, sizeof(clip.ucp)); 62 st->state.clip = clip; 63 cso_set_clip(st->cso_context, &clip);
|
/external/skia/src/core/ |
H A D | SkScan.cpp | 18 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip, argument 21 if (clip) { 22 if (clip->isRect()) { 23 const SkIRect& clipBounds = clip->getBounds(); 34 SkRegion::Cliperator cliper(*clip, r); 48 void SkScan::FillXRect(const SkXRect& xr, const SkRegion* clip, argument 53 SkScan::FillIRect(r, clip, blitter); 56 void SkScan::FillRect(const SkRect& r, const SkRegion* clip, argument 61 SkScan::FillIRect(ir, clip, blitter); 66 void SkScan::FillIRect(const SkIRect& r, const SkRasterClip& clip, argument 81 FillXRect(const SkXRect& xr, const SkRasterClip& clip, SkBlitter* blitter) argument 96 FillRect(const SkRect& r, const SkRasterClip& clip, SkBlitter* blitter) argument [all...] |
H A D | SkEdgeClipper.cpp | 13 static bool quick_reject(const SkRect& bounds, const SkRect& clip) { argument 14 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop; 75 // Modify pts[] in place so that it is clipped in Y to the clip rect 76 static void chop_quad_in_Y(SkPoint pts[3], const SkRect& clip) { argument 81 if (pts[0].fY < clip.fTop) { 82 if (chopMonoQuadAtY(pts, clip.fTop, &t)) { 86 tmp[2].fY = clip.fTop; 87 clamp_ge(tmp[3].fY, clip.fTop); 95 if (pts[i].fY < clip 125 clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip) argument 199 clipQuad(const SkPoint srcPts[3], const SkRect& clip) argument 229 chop_cubic_in_Y(SkPoint pts[4], const SkRect& clip) argument 274 clipMonoCubic(const SkPoint src[4], const SkRect& clip) argument 347 clipCubic(const SkPoint srcPts[4], const SkRect& clip) argument [all...] |
H A D | SkLineClipper.cpp | 77 bool SkLineClipper::IntersectLine(const SkPoint src[2], const SkRect& clip, argument 82 if (containsNoEmptyCheck(clip, bounds)) { 90 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || 91 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || 92 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || 93 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) { 111 if (tmp[index0].fY < clip.fTop) { 112 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop); 114 if (tmp[index1].fY > clip 175 ClipLine(const SkPoint pts[], const SkRect& clip, SkPoint lines[], bool canCullToTheRight) argument [all...] |
H A D | SkLineClipper.h | 21 /* Clip the line pts[0]...pts[1] against clip, ignoring segments that 22 lie completely above or below the clip. For portions to the left or 24 edge of the clip. 32 static int ClipLine(const SkPoint pts[2], const SkRect& clip, 43 static bool IntersectLine(const SkPoint src[2], const SkRect& clip, SkPoint dst[2]);
|
H A D | SkScanPriv.h | 18 SkScanClipper(SkBlitter* blitter, const SkRegion* clip, const SkIRect& bounds, 31 // clipRect == null means path is entirely inside the clip 36 // blit the rects above and below avoid, clipped to clip 37 void sk_blit_above(SkBlitter*, const SkIRect& avoid, const SkRegion& clip); 38 void sk_blit_below(SkBlitter*, const SkIRect& avoid, const SkRegion& clip);
|
H A D | SkCubicClipper.h | 16 /** This class is initialized with a clip rectangle, and then can be fed cubics, 19 In the future, it might return a series of segments, allowing it to clip 26 void setClip(const SkIRect& clip);
|
H A D | SkQuadClipper.h | 15 /** This class is initialized with a clip rectangle, and then can be fed quads, 18 In the future, it might return a series of segments, allowing it to clip 25 void setClip(const SkIRect& clip); 39 bool clipQuad(const SkPoint pts[3], const SkRect& clip); 40 bool clipCubic(const SkPoint pts[4], const SkRect& clip); 55 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip); 56 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
|
H A D | SkRasterClip.cpp | 103 // These ops can only shrink the current clip. So leaving 104 // the clip unchanged conservatively respects the contract. 110 // These ops can grow the current clip up to the extents of 111 // the input clip, which is inverse filled, so we just set 112 // the current clip to the device bounds. 125 // Difference can only shrink the current clip. 126 // Leaving clip unchanged conservatively fullfills the contract. 144 bool SkRasterClip::setPath(const SkPath& path, const SkRegion& clip, bool doAA) { argument 148 return this->setConservativeRect(path.getBounds(), clip.getBounds(), path.isInverseFillType()); 152 (void)fBW.setPath(path, clip); 212 setPath(const SkPath& path, const SkIRect& clip, bool doAA) argument 238 op(const SkRasterClip& clip, SkRegion::Op op) argument 393 SkAAClipBlitterWrapper(const SkRasterClip& clip, SkBlitter* blitter) argument 409 init(const SkRasterClip& clip, SkBlitter* blitter) argument [all...] |
H A D | SkScan_Hairline.cpp | 41 void SkScan::HairLineRgn(const SkPoint array[], int arrayCount, const SkRegion* clip, 50 if (clip) { 51 clipBounds.set(clip->getBounds()); 59 // We have to pre-clip the line to fit in a SkFixed, so we just chop 65 // Perform a clip in scalar space, so we catch huge values which might 67 if (clip && !SkLineClipper::IntersectLine(pts, clipBounds, pts)) { 81 if (clip) { 85 const SkIRect& bounds = clip->getBounds(); 101 if (!clip->isRect() || !clipR.contains(ptsR)) { 102 blitter = clipper.apply(origBlitter, clip); [all...] |
H A D | SkScan_Antihair.cpp | 19 our extends. The bug is that when this happens, we will set the clip to 20 NULL (for speed), and thus draw outside of the clip by a pixel, which might 26 case (i.e. not setting the clip to NULL) when we might not actually need 306 const SkIRect* clip, SkBlitter* blitter) { 314 // The caller must clip the line to [-32767.0 ... 32767.0] ahead of time 324 values are huge. A better fix might be to clip the original pts 330 do_anti_hairline(x0, y0, hx, hy, clip, blitter); 331 do_anti_hairline(hx, hy, x1, y1, clip, blitter); 375 if (clip){ 376 if (istart >= clip [all...] |
H A D | SkEdgeBuilder.h | 25 int build(const SkPath& path, const SkIRect* clip, int shiftUp, bool clipToTheRight); 49 int buildPoly(const SkPath& path, const SkIRect* clip, int shiftUp, bool clipToTheRight);
|
H A D | SkEdgeClipper.h | 15 /** This is basically an iterator. It is initialized with an edge and a clip, 22 bool clipQuad(const SkPoint pts[3], const SkRect& clip); 23 bool clipCubic(const SkPoint pts[4], const SkRect& clip); 41 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip); 42 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
|
H A D | SkBlitBWMaskTemplate.h | 19 SK_BLITBWMASK_NAME name of function(const SkBitmap& bitmap, const SkMask& mask, const SkIRect& clip, SK_BLITBWMASK_ARGS) 26 static void SK_BLITBWMASK_NAME(const SkBitmap& bitmap, const SkMask& srcMask, const SkIRect& clip SK_BLITBWMASK_ARGS) 28 SkASSERT(clip.fRight <= srcMask.fBounds.fRight); 30 int cx = clip.fLeft; 31 int cy = clip.fTop; 35 unsigned height = clip.height(); 44 if (cx == maskLeft && clip.fRight == srcMask.fBounds.fRight) 61 int rite_edge = clip.fRight - maskLeft;
|
/external/icu/icu4c/source/samples/layout/ |
H A D | Surface.cpp | 18 RECT clip; local 20 clip.top = 0; 21 clip.left = 0; 22 clip.bottom = height; 23 clip.right = width; 27 ExtTextOut(fHdc, x, y - fAscent, ETO_CLIPPED | ETO_GLYPH_INDEX, &clip,
|
/external/webp/src/dec/ |
H A D | quant.c | 16 static WEBP_INLINE int clip(int v, int M) { function 91 m->y1_mat_[0] = kDcTable[clip(q + dqy1_dc, 127)]; 92 m->y1_mat_[1] = kAcTable[clip(q + 0, 127)]; 94 m->y2_mat_[0] = kDcTable[clip(q + dqy2_dc, 127)] * 2; 98 m->y2_mat_[1] = (kAcTable[clip(q + dqy2_ac, 127)] * 101581) >> 16; 101 m->uv_mat_[0] = kDcTable[clip(q + dquv_dc, 117)]; 102 m->uv_mat_[1] = kAcTable[clip(q + dquv_ac, 127)];
|
/external/skia/tests/ |
H A D | MatrixClipCollapseTest.cpp | 18 // overall structure, bodies that draw something and model/clip state changes. 23 // be completely removed by the matrix/clip collapse. Note: every save in 32 // The ModelClip methods output matrix and clip ops in various orders and 34 // expected matrix & clip ops. Note that, currently, the entire clip stack 35 // is output for each MC state so the clip operations accumulate down the 39 // check on clip offsets 40 // - not sure if this is possible. The desire is to verify that the clip 43 // offset stored in the SkPicture to the debugger's clip objects 47 // rendering before and after images. Additionally the matrix/clip collaps 154 emit_clip(SkCanvas* canvas, ClipType clip) argument 194 add_clip(ClipType clip, MatType mat, SkTDArray<DrawType>* expected) argument 325 emit_clip_and_mat(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument 346 emit_mat_and_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument 369 emit_double_mat_and_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument 394 emit_mat_clip_clip(SkCanvas* canvas, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument 417 emit_body0(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument 438 emit_body1(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument 466 emit_body2(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument 504 emit_body3(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, DrawOpType draw, SkTDArray<DrawType>* expected, int accumulatedClips) argument 552 emit_struct0(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) argument 568 emit_struct1(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) argument 591 emit_struct2(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) argument 620 emit_struct3(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, ClipType clip, PFEmitBody emitBody, DrawOpType draw, SkTDArray<DrawType>* expected) argument [all...] |
H A D | FillPathTest.cpp | 31 SkIRect clip; local 36 clip.set(0, height - expected_lines, width, height); 42 SkScan::FillPath(path, clip, &blitter);
|
/external/libvncserver/x11vnc/misc/ |
H A D | panner.pl | 3 # panner.pl: start up x11vnc in '-clip' mode viewing a small (WxH) 46 # set a -clip argument based on the above: 48 my $clip = ''; 50 $clip = "${W}x${H}+0+0" unless $v{pointer_same}; 52 # launch x11vnc with -clip in the background: 54 my $cmd = "$x11vnc -clip $clip -bg " . join(" ", @ARGV); 68 # loop forever waiting for mouse position to change, then shift -clip: 70 my $clip_old = $clip; 76 if ($clip n [all...] |
/external/skia/src/gpu/ |
H A D | GrClip.cpp | 16 * getConservativeBounds returns the conservative bounding box of the clip 51 static const GrClip clip; local 52 return clip;
|
/external/toybox/toys/posix/ |
H A D | nl.c | 75 char *clip = ""; local 80 else if (!strcmp(TT.n, "ln")) clip = "-"; 81 else if (!strcmp(TT.n, "rz")) clip = "0"; 84 sprintf(toybuf, "%%%s%s", clip, "*ld%s");
|
/external/skia/gm/ |
H A D | simpleaaclip.cpp | 15 static void paint_rgn(SkCanvas* canvas, const SkAAClip& clip, argument 20 clip.copyToMask(&mask); 70 void buildRgn(SkAAClip* clip, SkRegion::Op op) { argument 71 clip->setPath(fBasePath, NULL, true); 75 clip->op(clip2, op); 90 SkAAClip clip; local 92 this->buildRgn(&clip, op); 97 paint_rgn(canvas, clip, paint); 106 // create the clip mask with the supplied boolean op 117 // draw a rect that will entirely cover the clip mas [all...] |
/external/proguard/src/proguard/gui/splash/ |
H A D | ClipSprite.java | 26 * This Sprite encapsulates another Sprite, which is clipped by a clip Sprite. 40 * @param insideClipColor the background color inside the clip sprite. 41 * @param outsideClipColor the background color outside the clip sprite. 42 * @param clipSprite the clip Sprite. 63 Rectangle clip = graphics.getClipBounds(); 66 graphics.fillRect(0, 0, clip.width, clip.height); 75 // Clear the clip area.
|
/external/skia/debugger/QT/ |
H A D | SkInspectorWidget.cpp | 54 void SkInspectorWidget::setClip(const SkIRect& clip) { argument 55 fClipEntry[0].setText(QString::number(clip.left(), 'g', kSignificantNumbersInFields)); 56 fClipEntry[1].setText(QString::number(clip.top(), 'g', kSignificantNumbersInFields)); 57 fClipEntry[2].setText(QString::number(clip.right(), 'g', kSignificantNumbersInFields)); 58 fClipEntry[3].setText(QString::number(clip.bottom(), 'g', kSignificantNumbersInFields));
|