Home
last modified time | relevance | path

Searched refs:fClip (Results 1 – 25 of 27) sorted by relevance

12

/external/skia/samplecode/
DSampleCull.cpp106 fClip.set(0, 0, SkIntToScalar(160), SkIntToScalar(160)); in CullView()
111 SkScalar x = nextScalarRange(rand, -fClip.width()*1, fClip.width()*2); in CullView()
112 SkScalar y = nextScalarRange(rand, -fClip.height()*1, fClip.height()*2); in CullView()
119 SkScalar bump = fClip.width()/8; in CullView()
145 canvas->translate( SkScalarHalf(this->width() - fClip.width()), in onDrawContent()
146 SkScalarHalf(this->height() - fClip.height())); in onDrawContent()
155 canvas->drawRect(fClip, paint); in onDrawContent()
167 fClip.round(&iclip); in onDrawContent()
184 SkRect fClip; member in CullView
DSampleLineClipper.cpp160 SkRect fClip; member in LineClipperView
180 fClip.set(SkIntToScalar(x), SkIntToScalar(y), in LineClipperView()
215 drawVLine(canvas, fClip.fLeft + SK_ScalarHalf, paint); in onDrawContent()
216 drawVLine(canvas, fClip.fRight - SK_ScalarHalf, paint); in onDrawContent()
217 drawHLine(canvas, fClip.fTop + SK_ScalarHalf, paint); in onDrawContent()
218 drawHLine(canvas, fClip.fBottom - SK_ScalarHalf, paint); in onDrawContent()
221 canvas->drawRect(fClip, paint); in onDrawContent()
232 gProcs[fProcIndex](fPts, fClip, canvas, paint, paint1); in onDrawContent()
DSampleMovie.cpp56 SkRect fClip; member in AnimGifView
/external/skia/src/core/
DSkClipStack.cpp222 fClip.fRect = NULL; in next()
223 fClip.fPath = NULL; in next()
226 fClip.fRect = &rec->fRect; in next()
227 fClip.fPath = NULL; in next()
230 fClip.fRect = NULL; in next()
231 fClip.fPath = &rec->fPath; in next()
234 fClip.fOp = rec->fOp; in next()
235 fClip.fDoAA = rec->fDoAA; in next()
236 return &fClip; in next()
DSkQuadClipper.cpp29 fClip.set(clip); in setClip()
78 const SkScalar ctop = fClip.fTop; in clipQuad()
79 const SkScalar cbot = fClip.fBottom; in clipQuad()
DSkCubicClipper.cpp17 fClip.set(clip); in setClip()
130 const SkScalar ctop = fClip.fTop; in clipCubic()
131 const SkScalar cbot = fClip.fBottom; in clipCubic()
DSkDraw.cpp298 const SkRegion* fClip; member
317 SkASSERT(rec.fClip->isRect()); in bw_pt_rect_hair_proc()
318 const SkIRect& r = rec.fClip->getBounds(); in bw_pt_rect_hair_proc()
356 if (rec.fClip->contains(x, y)) { in bw_pt_hair_proc()
438 fClip = NULL; in init()
454 fClip = NULL; in init()
468 fClip = &fRC->bwRgn(); in chooseProc()
471 fClip = &fWrapper.getRgn(); in chooseProc()
490 if (SkCanvas::kPoints_PointMode == fMode && fClip->isRect()) { in chooseProc()
1347 SkASSERT((NULL == state.fClip && state.fAAClip) || in D1G_NoBounder_RectClip()
[all …]
DSkCubicClipper.h31 SkRect fClip;
DSkCanvas.cpp69 SkRasterClip fClip; member
103 fClip = totalClip; in updateMC()
110 totalClip.translate(-x, -y, &fClip); in updateMC()
113 fClip.op(SkIRect::MakeWH(width, height), SkRegion::kIntersect_Op); in updateMC()
122 fDevice->setMatrixClip(*fMatrix, fClip.forceGetBW(), clipStack); in updateMC()
125 if (!fClip.isEmpty()) { in updateMC()
128 SkASSERT(deviceR.contains(fClip.getBounds())); in updateMC()
230 while (fCurrLayer && fCurrLayer->fClip.isEmpty()) { in next()
239 fClip = &((SkRasterClip*)&rec->fClip)->forceGetBW(); in next()
240 fRC = &rec->fClip; in next()
[all …]
DSkDrawProcs.h19 const SkRegion* fClip; member
DSkQuadClipper.h30 SkRect fClip;
DSkRegion.cpp1202 : fIter(rgn), fClip(clip), fDone(true) { in Cliperator()
1227 if (r.fTop >= fClip.fBottom) { in next()
1230 if (fRect.intersect(fClip, r)) { in next()
DSkAAClip.cpp19 AutoAAClipValidate(const SkAAClip& clip) : fClip(clip) { in AutoAAClipValidate()
20 fClip.validate(); in AutoAAClipValidate()
23 fClip.validate(); in ~AutoAAClipValidate()
26 const SkAAClip& fClip; member in AutoAAClipValidate
DSkScalerContext.cpp500 draw.fClip = &clip.bwRgn(); in generateMask()
/external/skia/include/core/
DSkBounder.h79 void setClip(const SkRegion* clip) { fClip = clip; } in setClip()
81 const SkRegion* fClip; variable
DSkClipStack.h78 Clip fClip;
DSkDraw.h109 const SkRegion* fClip; // DEPRECATED variable
DSkRegion.h330 SkIRect fClip; variable
/external/skia/src/gpu/
DGrGpu.cpp557 if (fClip.hasConservativeBounds()) { in setupClipAndFlushState()
558 bounds = fClip.getConservativeBounds(); in setupClipAndFlushState()
573 fClipInStencil = !fClip.isRect() && !fClip.isEmpty() && in setupClipAndFlushState()
583 stencilBuffer->mustRenderClip(fClip, rt->width(), rt->height())) { in setupClipAndFlushState()
585 stencilBuffer->setLastClip(fClip, rt->width(), rt->height()); in setupClipAndFlushState()
592 fClip.setFromRect(bounds); in setupClipAndFlushState()
653 fClip = clip; in setupClipAndFlushState()
718 fClip = clip; in setupClipAndFlushState()
DGrDrawTarget.h603 fClip = fTarget->getClip(); in AutoClipRestore()
607 fTarget->setClip(fClip); in ~AutoClipRestore()
611 GrClip fClip; variable
987 GrClip fClip; variable
DGrInOrderDrawBuffer.cpp107 if (drawState->isClipState() && fClip.isRect()) { in drawRect()
109 GrRect clipRect = fClip.getRect(0); in drawRect()
608 if (fClips.empty() || (fClipSet && fClips.back() != fClip)) { in needsNewClip()
616 fClips.push_back() = fClip; in pushClip()
DSkGpuDevice.cpp361 *draw.fClipStack, *draw.fClip, this->getOrigin()); in prepareRenderTarget()
1169 *draw.fMatrix, *draw.fClip, draw.fBounder, in drawPath()
1172 *draw.fMatrix, *draw.fClip, draw.fBounder, in drawPath()
1372 r.set(draw.fClip->getBounds()); in drawBitmap()
DGrDrawTarget.cpp507 fClip = clip; in setClip()
511 return fClip; in getClip()
/external/skia/src/pdf/
DSkPDFDevice.cpp447 init(draw.fClipStack, *draw.fClip, *draw.fMatrix, paint, hasText); in ScopedContentEntry()
623 if (d.fClip->isEmpty()) { in drawPoints()
698 if (d.fClip->isEmpty()) { in drawRect()
738 if (d.fClip->isEmpty()) { in drawPath()
771 if (d.fClip->isEmpty()) { in drawBitmap()
777 internalDrawBitmap(transform, d.fClipStack, *d.fClip, bitmap, srcRect, in drawBitmap()
783 if (d.fClip->isEmpty()) { in drawSprite()
789 internalDrawBitmap(matrix, d.fClipStack, *d.fClip, bitmap, NULL, paint); in drawSprite()
895 if (d.fClip->isEmpty()) { in drawTextOnPath()
906 if (d.fClip->isEmpty()) { in drawVertices()
[all …]
/external/skia/src/effects/
DSkLayerRasterizer.cpp128 draw.fClip = &rectClip.bwRgn(); in onRasterize()

12