/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); 58 void SkScan::FillRect(const SkRect& r, const SkRegion* clip, argument 63 SkScan::FillIRect(ir, clip, blitter); 70 void SkScan::FillIRect(const SkIRect& r, const SkRasterClip& clip, argument 85 FillXRect(const SkXRect& xr, const SkRasterClip& clip, SkBlitter* blitter) argument 102 FillRect(const SkRect& r, const SkRasterClip& clip, SkBlitter* blitter) argument [all...] |
H A D | SkLineClipper.cpp | 68 bool SkLineClipper::IntersectLine(const SkPoint src[2], const SkRect& clip, argument 73 if (containsNoEmptyCheck(clip, bounds)) { 81 if (nestedLT(bounds.fRight, clip.fLeft, bounds.width()) || 82 nestedLT(clip.fRight, bounds.fLeft, bounds.width()) || 83 nestedLT(bounds.fBottom, clip.fTop, bounds.height()) || 84 nestedLT(clip.fBottom, bounds.fTop, bounds.height())) { 102 if (tmp[index0].fY < clip.fTop) { 103 tmp[index0].set(sect_with_horizontal(src, clip.fTop), clip.fTop); 105 if (tmp[index1].fY > clip 151 ClipLine(const SkPoint pts[], const SkRect& clip, SkPoint lines[]) 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)) { 85 clamp_ge(tmp[2].fY, clip.fTop); 86 clamp_ge(tmp[3].fY, clip.fTop); 93 if (pts[i].fY < clip 121 clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip) argument 189 clipQuad(const SkPoint srcPts[3], const SkRect& clip) argument [all...] |
H A D | SkScan_Hairline.cpp | 37 const SkRegion* clip, SkBlitter* blitter) { 43 if (clip) { 44 // Perform a clip in scalar space, so we catch huge values which might 46 r.set(clip->getBounds()); 57 if (clip) { 61 const SkIRect& bounds = clip->getBounds(); 77 if (clip->isRect() && clipR.contains(ptsR)) { 78 clip = NULL; 80 blitter = clipper.apply(blitter, clip); 123 void SkScan::HairRect(const SkRect& rect, const SkRasterClip& clip, [all...] |
H A D | SkScanPriv.h | 18 SkScanClipper(SkBlitter* blitter, const SkRegion* clip, const SkIRect& bounds); 30 // clipRect == null means path is entirely inside the clip 35 // blit the rects above and below avoid, clipped to clip 36 void sk_blit_above(SkBlitter*, const SkIRect& avoid, const SkRegion& clip); 37 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 | SkRasterClip.cpp | 67 bool SkRasterClip::setPath(const SkPath& path, const SkRegion& clip, bool doAA) { argument 71 return fBW.setPath(path, clip); 78 return fAA.setPath(path, &clip, doAA); 82 bool SkRasterClip::setPath(const SkPath& path, const SkIRect& clip, bool doAA) { argument 84 tmp.setRect(clip); 88 bool SkRasterClip::setPath(const SkPath& path, const SkRasterClip& clip, argument 90 if (clip.isBW()) { 91 return this->setPath(path, clip.bwRgn(), doAA); 94 tmp.setRect(clip.getBounds()); 95 if (!this->setPath(path, clip, doA 120 op(const SkRasterClip& clip, SkRegion::Op op) argument 242 SkAAClipBlitterWrapper(const SkRasterClip& clip, SkBlitter* blitter) argument 258 init(const SkRasterClip& clip, SkBlitter* blitter) argument [all...] |
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 | 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 213 const SkIRect* clip, SkBlitter* blitter) { 220 values are huge. A better fix might be to clip the original pts 226 do_anti_hairline(x0, y0, hx, hy, clip, blitter); 227 do_anti_hairline(hx, hy, x1, y1, clip, blitter); 265 if (clip){ 266 if (istart >= clip->fRight || istop <= clip [all...] |
H A D | SkEdge.h | 34 int setLine(const SkPoint& p0, const SkPoint& p1, const SkIRect* clip, 37 void chopLineWithClip(const SkIRect& clip); 39 inline bool intersectsClip(const SkIRect& clip) const { 40 SkASSERT(fFirstY < clip.fBottom); 41 return fLastY >= clip.fTop; 81 int setCubic(const SkPoint pts[4], const SkIRect* clip, int shiftUp);
|
/external/icu4c/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/webkit/Source/WebKit/mac/WebView/ |
H A D | WebDashboardRegion.h | 42 NSRect clip; variable 45 - initWithRect:(NSRect)rect clip:(NSRect)clip type:(WebDashboardRegionType)type;
|
H A D | WebDashboardRegion.mm | 34 - initWithRect:(NSRect)r clip:(NSRect)c type:(WebDashboardRegionType)t 38 clip = c; 52 return clip; 82 return [NSString stringWithFormat:@"rect:%@ clip:%@ type:%s", NSStringFromRect(rect), NSStringFromRect(clip), typeName(type)]; 88 return NSEqualRects(rect, [other dashboardRegionRect]) && NSEqualRects(clip, [other dashboardRegionClip]) && type == [other dashboardRegionType];
|
/external/skia/include/core/ |
H A D | SkLineClipper.h | 20 /* Clip the line pts[0]...pts[1] against clip, ignoring segments that 21 lie completely above or below the clip. For portions to the left or 23 edge of the clip. 31 static int ClipLine(const SkPoint pts[2], const SkRect& clip, 42 static bool IntersectLine(const SkPoint src[2], const SkRect& clip,
|
H A D | SkEdgeClipper.h | 15 /** This is basically an iterator. It is initialized with an edge and a clip, 20 bool clipQuad(const SkPoint pts[3], const SkRect& clip); 21 bool clipCubic(const SkPoint pts[4], const SkRect& clip); 36 void clipMonoQuad(const SkPoint srcPts[3], const SkRect& clip); 37 void clipMonoCubic(const SkPoint srcPts[4], const SkRect& clip);
|
H A D | SkScan.h | 35 static void FillRect(const SkRect& rect, const SkRasterClip& clip, argument 37 SkScan::FillXRect(*(const SkXRect*)&rect, clip, blitter); 39 static void AntiFillRect(const SkRect& rect, const SkRasterClip& clip, argument 41 SkScan::AntiFillXRect(*(const SkXRect*)&rect, clip, blitter); 68 static void FillIRect(const SkIRect&, const SkRegion* clip, SkBlitter*); 69 static void FillXRect(const SkXRect&, const SkRegion* clip, SkBlitter*); 71 static void FillRect(const SkRect& rect, const SkRegion* clip, argument 73 SkScan::FillXRect(*(const SkXRect*)&rect, clip, blitter); 75 static void AntiFillRect(const SkRect& rect, const SkRegion* clip, argument 77 SkScan::AntiFillXRect(*(const SkXRect*)&rect, clip, blitte [all...] |
/external/webkit/Source/WebCore/rendering/style/ |
H A D | StyleVisualData.cpp | 42 , clip(o.clip)
|
H A D | StyleVisualData.h | 42 return ( clip == o.clip && 49 LengthBox clip; member in class:WebCore::StyleVisualData
|
/external/chromium/third_party/libjingle/source/talk/session/phone/ |
H A D | soundclip.cc | 40 : clip(c), 46 const void *clip; member in struct:cricket::PlaySoundMessageData 57 bool Soundclip::PlaySound(const void *clip, argument 60 PlaySoundMessageData data(clip, len, flags); 65 bool Soundclip::PlaySound_w(const void *clip, argument 68 return soundclip_media_->PlaySound(static_cast<const char *>(clip), 77 data->result = PlaySound_w(data->clip,
|
/external/webp/src/dec/ |
H A D | quant.c | 18 static WEBP_INLINE int clip(int v, int M) { function 93 m->y1_mat_[0] = kDcTable[clip(q + dqy1_dc, 127)]; 94 m->y1_mat_[1] = kAcTable[clip(q + 0, 127)]; 96 m->y2_mat_[0] = kDcTable[clip(q + dqy2_dc, 127)] * 2; 100 m->y2_mat_[1] = (kAcTable[clip(q + dqy2_ac, 127)] * 101581) >> 16; 103 m->uv_mat_[0] = kDcTable[clip(q + dquv_dc, 117)]; 104 m->uv_mat_[1] = kAcTable[clip(q + dquv_ac, 127)];
|
/external/skia/tests/ |
H A D | FillPathTest.cpp | 35 SkIRect clip; local 40 clip.set(0, height - expected_lines, width, height); 45 SkScan::FillPath(path, clip, &blitter);
|
/external/skia/samplecode/ |
H A D | SampleLineClipper.cpp | 29 static int test0(SkPoint pts[], SkRect* clip) { argument 33 clip->set(0, 0, 640, 480); 53 typedef void (*clipper_proc)(const SkPoint src[], const SkRect& clip, 56 static void check_clipper(int count, const SkPoint pts[], const SkRect& clip) { argument 58 SkASSERT(pts[i].fX >= clip.fLeft); 59 SkASSERT(pts[i].fX <= clip.fRight); 60 SkASSERT(pts[i].fY >= clip.fTop); 61 SkASSERT(pts[i].fY <= clip.fBottom); 69 static void line_intersector(const SkPoint src[], const SkRect& clip, argument 74 if (SkLineClipper::IntersectLine(src, clip, ds 80 line_clipper(const SkPoint src[], const SkRect& clip, SkCanvas* canvas, const SkPaint& p0, const SkPaint& p1) argument 92 quad_clipper(const SkPoint src[], const SkRect& clip, SkCanvas* canvas, const SkPaint& p0, const SkPaint& p1) argument 117 cubic_clipper(const SkPoint src[], const SkRect& clip, SkCanvas* canvas, const SkPaint& p0, const SkPaint& p1) argument [all...] |
/external/webkit/Source/WebCore/platform/graphics/android/rendering/ |
H A D | GLExtras.cpp | 94 SkRegion clip; local 108 if (clip.intersects(line)) { 109 clip.op(line, SkRegion::kReverseDifference_Op); 110 if (clip.isEmpty()) 112 line = clip.getBounds(); 114 clip.op(startRect, SkRegion::kDifference_Op); 115 if (clip.isEmpty()) 117 line = clip.getBounds(); 120 clip.setRect(line);
|
/external/webkit/Source/WebCore/plugins/symbian/ |
H A D | PluginContainerSymbian.cpp | 47 void PluginContainerSymbian::requestGeometry(const QRect& rect, const QRegion& clip) argument 49 if (m_windowRect != rect || m_clipRegion != clip) { 51 m_clipRegion = clip;
|
/external/webp/src/dsp/ |
H A D | yuv.c | 27 static WEBP_INLINE uint8_t clip(int v, int max_value) { function 44 VP8kClip[i - YUV_RANGE_MIN] = clip(k, 255); 45 VP8kClip4Bits[i - YUV_RANGE_MIN] = clip((k + 8) >> 4, 15);
|