/external/mesa3d/src/mesa/drivers/dri/i965/ |
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.state_offset [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
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/ |
SkScan.cpp | 18 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip, 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, 53 SkScan::FillIRect(r, clip, blitter); 56 void SkScan::FillRect(const SkRect& r, const SkRegion* clip, 61 SkScan::FillIRect(ir, clip, blitter); 66 void SkScan::FillIRect(const SkIRect& r, const SkRasterClip& clip, [all...] |
SkEdgeClipper.cpp | 13 static bool quick_reject(const SkRect& bounds, const SkRect& clip) { 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) { 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.fTop) [all...] |
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);
|
SkLineClipper.cpp | 77 bool SkLineClipper::IntersectLine(const SkPoint src[2], const SkRect& clip, 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.fBottom) [all...] |
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]);
|
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);
|
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);
|
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);
|
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...] |
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) { 148 return this->setConservativeRect(path.getBounds(), clip.getBounds(), path.isInverseFillType()); 152 (void)fBW.setPath(path, clip); [all...] |
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->fRight || istop <= clip->fLeft) [all...] |
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);
|
/external/icu/icu4c/source/samples/layout/ |
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,
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
RoundedRectHelper.java | 39 public void setClipToRoundedOutline(View view, boolean clip) { 40 mImpl.setClipToRoundedOutline(view, clip); 44 public void setClipToRoundedOutline(View view, boolean clip); 52 public void setClipToRoundedOutline(View view, boolean clip) { 62 public void setClipToRoundedOutline(View view, boolean clip) { 63 RoundedRectHelperApi21.setClipToRoundedOutline(view, clip);
|
/external/webp/src/dec/ |
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/libvncserver/x11vnc/misc/ |
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 ne $clip_old) [all...] |
/external/skia/tests/ |
MatrixClipCollapseTest.cpp | 15 // This test exercises the Matrix/Clip State collapsing system. It generates 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 object [all...] |
FillPathTest.cpp | 31 SkIRect clip; local 36 clip.set(0, height - expected_lines, width, height); 42 SkScan::FillPath(path, clip, &blitter);
|
/frameworks/native/opengl/libagl/ |
vertex.cpp | 52 // Divides a vertex clip coordinates by W 56 // [x,y,z]window = vpt * ([x,y,z]clip / clip.w) 69 const int32_t rw = gglRecip28(v->clip.w); 72 v->window.x = gglMulAddx(gglMulx(v->clip.x, rw, 16), m[ 0], m[12], 28); 73 v->window.y = gglMulAddx(gglMulx(v->clip.y, rw, 16), m[ 5], m[13], 28); 77 v->window.z = gglMulAddx(gglMulx(v->clip.z, rw, 16), m[10], m[14], 28); 85 // ndc = clip / W 88 // clip to the view-volume 89 uint32_t clip = v->flags & vertex_t::CLIP_ALL local 118 uint32_t clip = 0; local [all...] |
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/widget/ |
RoundedRectHelperApi21.java | 39 public static void setClipToRoundedOutline(View view, boolean clip) { 40 view.setOutlineProvider(clip ? sOutlineProvider : ViewOutlineProvider.BACKGROUND); 41 view.setClipToOutline(clip);
|
/cts/tests/tests/content/src/android/content/cts/ |
ClipboardManagerListenerActivity.java | 46 public synchronized void setPrimaryClip(ClipData clip) { 47 mClipboardManager.setPrimaryClip(clip);
|
/external/skia/src/gpu/ |
GrClip.cpp | 16 * getConservativeBounds returns the conservative bounding box of the clip 51 static const GrClip clip; local 52 return clip;
|
/frameworks/base/core/java/android/content/ |
ClipboardManager.java | 80 * Defines a listener callback that is invoked when the primary clip on the clipboard changes. 91 * clip changes. 113 * Sets the current primary clip on the clipboard. This is the clip that 116 * @param clip The clipped data item to set. 118 public void setPrimaryClip(ClipData clip) { 120 if (clip != null) { 121 clip.prepareToLeaveProcess(); 123 getService().setPrimaryClip(clip, mContext.getOpPackageName()); 129 * Returns the current primary clip on the clipboard 193 ClipData clip = getPrimaryClip(); local [all...] |