/external/skia/src/core/ |
D | SkEdgeClipper.cpp | 20 static bool quick_reject(const SkRect& bounds, const SkRect& clip) { in quick_reject() argument 21 return bounds.fTop >= clip.fBottom || bounds.fBottom <= clip.fTop; in quick_reject() 83 static void chop_quad_in_Y(SkPoint pts[3], const SkRect& clip) { in chop_quad_in_Y() argument 88 if (pts[0].fY < clip.fTop) { in chop_quad_in_Y() 89 if (chopMonoQuadAtY(pts, clip.fTop, &t)) { in chop_quad_in_Y() 92 clamp_ge(tmp[2].fY, clip.fTop); in chop_quad_in_Y() 93 clamp_ge(tmp[3].fY, clip.fTop); in chop_quad_in_Y() 100 if (pts[i].fY < clip.fTop) { in chop_quad_in_Y() 101 pts[i].fY = clip.fTop; in chop_quad_in_Y() 108 if (pts[2].fY > clip.fBottom) { in chop_quad_in_Y() [all …]
|
D | SkLineClipper.cpp | 61 bool SkLineClipper::IntersectLine(const SkPoint src[2], const SkRect& clip, in IntersectLine() argument 66 if (containsNoEmptyCheck(clip, bounds)) { in IntersectLine() 74 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || in IntersectLine() 75 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || in IntersectLine() 76 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || in IntersectLine() 77 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) { in IntersectLine() 95 if (tmp[index0].fY < clip.fTop) { in IntersectLine() 96 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop); in IntersectLine() 98 if (tmp[index1].fY > clip.fBottom) { in IntersectLine() 99 tmp[index1].set(sect_with_horizontal(src, clip.fBottom), clip.fBottom); in IntersectLine() [all …]
|
D | SkScan_Hairline.cpp | 45 const SkRegion* clip, SkBlitter* blitter) { in HairLine() argument 51 if (clip) { in HairLine() 54 r.set(clip->getBounds()); in HairLine() 65 if (clip) { in HairLine() 69 const SkIRect& bounds = clip->getBounds(); in HairLine() 85 if (clip->isRect() && clipR.contains(ptsR)) { in HairLine() 86 clip = NULL; in HairLine() 88 blitter = clipper.apply(blitter, clip); in HairLine() 131 void SkScan::HairRect(const SkRect& rect, const SkRegion* clip, in HairRect() argument 141 if (clip) { in HairRect() [all …]
|
D | SkScan_Antihair.cpp | 221 const SkIRect* clip, SkBlitter* blitter) { in do_anti_hairline() argument 234 do_anti_hairline(x0, y0, hx, hy, clip, blitter); in do_anti_hairline() 235 do_anti_hairline(hx, hy, x1, y1, clip, blitter); in do_anti_hairline() 273 if (clip){ in do_anti_hairline() 274 if (istart >= clip->fRight || istop <= clip->fLeft) { in do_anti_hairline() 277 if (istart < clip->fLeft) { in do_anti_hairline() 278 fstart += slope * (clip->fLeft - istart); in do_anti_hairline() 279 istart = clip->fLeft; in do_anti_hairline() 282 if (istop > clip->fRight) { in do_anti_hairline() 283 istop = clip->fRight; in do_anti_hairline() [all …]
|
D | SkBlitter_ARGB32.cpp | 28 const SkIRect& clip, const SkBitmap& device, 96 const SkIRect& clip, SkPMColor srcColor) { in blitmask_lcd16() argument 97 int x = clip.fLeft; in blitmask_lcd16() 98 int y = clip.fTop; in blitmask_lcd16() 99 int width = clip.width(); in blitmask_lcd16() 100 int height = clip.height(); in blitmask_lcd16() 115 const SkIRect& clip, SkPMColor srcColor) { in SkARGB32_Blit32() argument 123 int x = clip.fLeft; in SkARGB32_Blit32() 124 int y = clip.fTop; in SkARGB32_Blit32() 125 int width = clip.width(); in SkARGB32_Blit32() [all …]
|
D | SkScan.cpp | 26 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip, in FillIRect() argument 29 if (clip) { in FillIRect() 30 if (clip->isRect()) { in FillIRect() 31 const SkIRect& clipBounds = clip->getBounds(); in FillIRect() 42 SkRegion::Cliperator cliper(*clip, r); in FillIRect() 56 void SkScan::FillXRect(const SkXRect& xr, const SkRegion* clip, in FillXRect() argument 61 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()
|
D | SkScan_AntiPath.cpp | 49 const SkRegion& clip); 72 const SkRegion& clip) { in BaseSuperBlitter() argument 77 const int left = SkMin32(ir.fLeft, clip.getBounds().fLeft); in BaseSuperBlitter() 78 const int right = SkMax32(ir.fRight, clip.getBounds().fRight); in BaseSuperBlitter() 91 const SkRegion& clip); 109 const SkRegion& clip) in SuperBlitter() argument 110 : BaseSuperBlitter(realBlitter, ir, clip) { in SuperBlitter() 214 const SkRegion& clip); 251 const SkRegion& clip) in MaskSuperBlitter() argument 252 : BaseSuperBlitter(realBlitter, ir, clip) { in MaskSuperBlitter() [all …]
|
D | SkBlitter.cpp | 101 void SkBlitter::blitMask(const SkMask& mask, const SkIRect& clip) { in blitMask() argument 102 SkASSERT(mask.fBounds.contains(clip)); in blitMask() 105 int cx = clip.fLeft; in blitMask() 106 int cy = clip.fTop; in blitMask() 109 int height = clip.height(); in blitMask() 113 if (cx == maskLeft && clip.fRight == mask.fBounds.fRight) { in blitMask() 122 int rite_edge = clip.fRight - maskLeft; in blitMask() 159 int width = clip.width(); in blitMask() 162 const uint8_t* aa = mask.getAddr(clip.fLeft, clip.fTop); in blitMask() 167 int height = clip.height(); in blitMask() [all …]
|
D | SkBlitter_ARGB32_Subpixel.cpp | 57 const SkIRect& clip, const SkBitmap& device, in adjustForSubpixelClip() argument 62 const int leftOffset = clip.fLeft > 0 ? lcdMode : 0; in adjustForSubpixelClip() 63 const int topOffset = clip.fTop > 0 ? verticalLCDMode : 0; in adjustForSubpixelClip() 64 const int rightOffset = lcdMode && clip.fRight < device.width(); in adjustForSubpixelClip() 65 const int bottomOffset = verticalLCDMode && clip.fBottom < device.height(); in adjustForSubpixelClip() 67 uint32_t* device32 = device.getAddr32(clip.fLeft - leftOffset, clip.fTop - topOffset); in adjustForSubpixelClip() 68 *alpha32 = mask.getAddrLCD(clip.fLeft + (lcdMode && !leftOffset), in adjustForSubpixelClip() 69 clip.fTop + (verticalLCDMode && !topOffset)); in adjustForSubpixelClip()
|
D | SkEdge.cpp | 35 int SkEdge::setLine(const SkPoint& p0, const SkPoint& p1, const SkIRect* clip, in setLine() argument 71 if (NULL != clip && (top >= clip->fBottom || bot <= clip->fTop)) { in setLine() 85 if (clip) { in setLine() 86 this->chopLineWithClip(*clip); in setLine() 125 void SkEdge::chopLineWithClip(const SkIRect& clip) in chopLineWithClip() argument 129 SkASSERT(top < clip.fBottom); in chopLineWithClip() 132 if (top < clip.fTop) in chopLineWithClip() 134 SkASSERT(fLastY >= clip.fTop); in chopLineWithClip() 135 fX += fDX * (clip.fTop - top); in chopLineWithClip() 136 fFirstY = clip.fTop; in chopLineWithClip() [all …]
|
D | SkBlitBWMaskTemplate.h | 34 static void SK_BLITBWMASK_NAME(const SkBitmap& bitmap, const SkMask& srcMask, const SkIRect& clip S… in SK_BLITBWMASK_NAME() 36 SkASSERT(clip.fRight <= srcMask.fBounds.fRight); in SK_BLITBWMASK_NAME() 38 int cx = clip.fLeft; in SK_BLITBWMASK_NAME() 39 int cy = clip.fTop; in SK_BLITBWMASK_NAME() 43 unsigned height = clip.height(); in SK_BLITBWMASK_NAME() 52 if (cx == maskLeft && clip.fRight == srcMask.fBounds.fRight) in SK_BLITBWMASK_NAME() 69 int rite_edge = clip.fRight - maskLeft; in SK_BLITBWMASK_NAME()
|
D | SkEdge.h | 42 int setLine(const SkPoint& p0, const SkPoint& p1, const SkIRect* clip, 45 void chopLineWithClip(const SkIRect& clip); 47 inline bool intersectsClip(const SkIRect& clip) const { in intersectsClip() 48 SkASSERT(fFirstY < clip.fBottom); in intersectsClip() 49 return fLastY >= clip.fTop; in intersectsClip() 89 int setCubic(const SkPoint pts[4], const SkIRect* clip, int shiftUp);
|
D | SkQuadClipper.h | 32 void setClip(const SkIRect& clip); 46 bool clipQuad(const SkPoint pts[3], const SkRect& clip); 47 bool clipCubic(const SkPoint pts[4], const SkRect& clip); 62 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip); 63 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
|
D | SkBlitter_A8.cpp | 131 void SkA8_Blitter::blitMask(const SkMask& mask, const SkIRect& clip) { in blitMask() argument 138 SkA8_BlitBW(fDevice, mask, clip); in blitMask() 140 SkA8_BlendBW(fDevice, mask, clip, fSrcA, in blitMask() 146 int x = clip.fLeft; in blitMask() 147 int y = clip.fTop; in blitMask() 148 int width = clip.width(); in blitMask() 149 int height = clip.height(); in blitMask() 328 void SkA8_Shader_Blitter::blitMask(const SkMask& mask, const SkIRect& clip) { in blitMask() argument 330 this->INHERITED::blitMask(mask, clip); in blitMask() 334 int x = clip.fLeft; in blitMask() [all …]
|
D | SkScan_Path.cpp | 213 void setBlitter(SkBlitter* blitter, const SkIRect& clip, int shift) { in setBlitter() argument 215 fFirstX = clip.fLeft << shift; in setBlitter() 216 fLastX = clip.fRight << shift; in setBlitter() 248 virtual void blitMask(const SkMask&, const SkIRect& clip) { in blitMask() argument 522 void sk_blit_above(SkBlitter* blitter, const SkIRect& ir, const SkRegion& clip) { in sk_blit_above() argument 523 const SkIRect& cr = clip.getBounds(); in sk_blit_above() 531 blitter->blitRectRegion(tmp, clip); in sk_blit_above() 535 void sk_blit_below(SkBlitter* blitter, const SkIRect& ir, const SkRegion& clip) { in sk_blit_below() argument 536 const SkIRect& cr = clip.getBounds(); in sk_blit_below() 544 blitter->blitRectRegion(tmp, clip); in sk_blit_below() [all …]
|
/external/skia/include/core/ |
D | SkScan.h | 34 static void FillIRect(const SkIRect&, const SkRegion* clip, SkBlitter*); 35 static void FillXRect(const SkXRect&, const SkRegion* clip, SkBlitter*); 38 static void FillRect(const SkRect& rect, const SkRegion* clip, in FillRect() argument 40 SkScan::FillXRect(*(const SkXRect*)&rect, clip, blitter); in FillRect() 43 static void FillRect(const SkRect&, const SkRegion* clip, SkBlitter*); 45 static void FillPath(const SkPath&, const SkRegion& clip, SkBlitter*); 49 const SkPoint& c, const SkRegion* clip, in FillTriangle() argument 55 FillTriangle(pts, clip, blitter); in FillTriangle() 60 static void HairRect(const SkRect&, const SkRegion* clip, SkBlitter*); 61 static void HairPath(const SkPath&, const SkRegion* clip, SkBlitter*); [all …]
|
D | SkBlitter.h | 36 virtual void blitMask(const SkMask&, const SkIRect& clip); 45 void blitMaskRegion(const SkMask& mask, const SkRegion& clip); 46 void blitRectRegion(const SkIRect& rect, const SkRegion& clip); 47 void blitRegion(const SkRegion& clip); 78 virtual void blitMask(const SkMask&, const SkIRect& clip); 99 virtual void blitMask(const SkMask&, const SkIRect& clip); 124 virtual void blitMask(const SkMask&, const SkIRect& clip); 134 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip,
|
/external/quake/quake/src/QW/server/ |
D | world.c | 716 void SV_ClipToLinks ( areanode_t *node, moveclip_t *clip ) in SV_ClipToLinks() argument 729 if (touch == clip->passedict) in SV_ClipToLinks() 734 if (clip->type == MOVE_NOMONSTERS && touch->v.solid != SOLID_BSP) in SV_ClipToLinks() 737 if (clip->boxmins[0] > touch->v.absmax[0] in SV_ClipToLinks() 738 || clip->boxmins[1] > touch->v.absmax[1] in SV_ClipToLinks() 739 || clip->boxmins[2] > touch->v.absmax[2] in SV_ClipToLinks() 740 || clip->boxmaxs[0] < touch->v.absmin[0] in SV_ClipToLinks() 741 || clip->boxmaxs[1] < touch->v.absmin[1] in SV_ClipToLinks() 742 || clip->boxmaxs[2] < touch->v.absmin[2] ) in SV_ClipToLinks() 745 if (clip->passedict && clip->passedict->v.size[0] && !touch->v.size[0]) in SV_ClipToLinks() [all …]
|
/external/skia/samplecode/ |
D | SampleLineClipper.cpp | 22 static int test0(SkPoint pts[], SkRect* clip) { in test0() argument 26 clip->set(0, 0, 640, 480); in test0() 46 typedef void (*clipper_proc)(const SkPoint src[], const SkRect& clip, 49 static void check_clipper(int count, const SkPoint pts[], const SkRect& clip) { in check_clipper() argument 51 SkASSERT(pts[i].fX >= clip.fLeft); in check_clipper() 52 SkASSERT(pts[i].fX <= clip.fRight); in check_clipper() 53 SkASSERT(pts[i].fY >= clip.fTop); in check_clipper() 54 SkASSERT(pts[i].fY <= clip.fBottom); in check_clipper() 62 static void line_intersector(const SkPoint src[], const SkRect& clip, in line_intersector() argument 67 if (SkLineClipper::IntersectLine(src, clip, dst)) { in line_intersector() [all …]
|
/external/quake/quake/src/WinQuake/ |
D | world.cpp | 814 void SV_ClipToLinks ( areanode_t *node, moveclip_t *clip ) in SV_ClipToLinks() argument 827 if (touch == clip->passedict) in SV_ClipToLinks() 832 if (clip->type == MOVE_NOMONSTERS && touch->u.v.solid != SOLID_BSP) in SV_ClipToLinks() 835 if (clip->boxmins[0] > touch->u.v.absmax[0] in SV_ClipToLinks() 836 || clip->boxmins[1] > touch->u.v.absmax[1] in SV_ClipToLinks() 837 || clip->boxmins[2] > touch->u.v.absmax[2] in SV_ClipToLinks() 838 || clip->boxmaxs[0] < touch->u.v.absmin[0] in SV_ClipToLinks() 839 || clip->boxmaxs[1] < touch->u.v.absmin[1] in SV_ClipToLinks() 840 || clip->boxmaxs[2] < touch->u.v.absmin[2] ) in SV_ClipToLinks() 843 if (clip->passedict && clip->passedict->u.v.size[0] && !touch->u.v.size[0]) in SV_ClipToLinks() [all …]
|
/external/chromium/third_party/libjingle/source/talk/session/phone/ |
D | soundclip.cc | 40 : clip(c), in PlaySoundMessageData() 46 const void *clip; member 57 bool Soundclip::PlaySound(const void *clip, in PlaySound() argument 60 PlaySoundMessageData data(clip, len, flags); in PlaySound() 65 bool Soundclip::PlaySound_w(const void *clip, in PlaySound_w() argument 68 return soundclip_media_->PlaySound(static_cast<const char *>(clip), in PlaySound_w() 77 data->result = PlaySound_w(data->clip, in OnMessage()
|
/external/icu4c/samples/layout/ |
D | Surface.cpp | 18 RECT clip; in drawGlyphs() local 20 clip.top = 0; in drawGlyphs() 21 clip.left = 0; in drawGlyphs() 22 clip.bottom = height; in drawGlyphs() 23 clip.right = width; in drawGlyphs() 27 ExtTextOut(fHdc, x, y - fAscent, ETO_CLIPPED | ETO_GLYPH_INDEX, &clip, in drawGlyphs()
|
/external/webp/src/dec/ |
D | quant.c | 18 static inline int clip(int v, int M) { in clip() function 93 m->y1_mat_[0] = kDcTable[clip(q + dqy1_dc, 127)]; in VP8ParseQuant() 94 m->y1_mat_[1] = kAcTable[clip(q + 0, 127)]; in VP8ParseQuant() 96 m->y2_mat_[0] = kDcTable[clip(q + dqy2_dc, 127)] * 2; in VP8ParseQuant() 98 m->y2_mat_[1] = kAcTable[clip(q + dqy2_ac, 127)] * 155 / 100; in VP8ParseQuant() 101 m->uv_mat_[0] = kDcTable[clip(q + dquv_dc, 117)]; in VP8ParseQuant() 102 m->uv_mat_[1] = kAcTable[clip(q + dquv_ac, 127)]; in VP8ParseQuant()
|
/external/webkit/Source/WebCore/platform/graphics/android/ |
D | GLExtras.cpp | 117 SkRegion clip; in drawRegion() local 131 if (clip.intersects(line)) { in drawRegion() 132 clip.op(line, SkRegion::kReverseDifference_Op); in drawRegion() 133 if (clip.isEmpty()) in drawRegion() 135 line = clip.getBounds(); in drawRegion() 137 clip.op(startRect, SkRegion::kDifference_Op); in drawRegion() 138 if (clip.isEmpty()) in drawRegion() 140 line = clip.getBounds(); in drawRegion() 143 clip.setRect(line); in drawRegion()
|
/external/webkit/Source/WebKit/mac/WebView/ |
D | WebClipView.mm | 36 // WebClipView's entire reason for existing is to set the clip used by focus ring redrawing. 37 // There's no easy way to prevent the focus ring from drawing outside the passed-in clip rectangle 39 // But it looks for the enclosing clip view, which gives us a hook we can use to control it. 40 // The "additional clip" is a clip for focus ring redrawing. 42 // FIXME: Change terminology from "additional clip" to "focus ring clip". 69 // In WebHTMLView, we set a clip. This is not typical to do in an 71 // it causes some bad problems if that clip is cached between calls. 72 // The cached graphics state, which clip views keep around, does 73 // cache the clip in this undesirable way. Consequently, we want to 74 // release the GState for all clip views for all views contained in
|