Home
last modified time | relevance | path

Searched refs:devRect (Results 1 – 11 of 11) sorted by relevance

/external/skia/src/gpu/ops/
DGrAAFillRectOp.cpp59 const SkRect& devRect, in generate_aa_fill_rect_geometry() argument
68 inset = SkMinScalar(devRect.width(), SK_Scalar1); in generate_aa_fill_rect_geometry()
69 inset = SK_ScalarHalf * SkMinScalar(inset, devRect.height()); in generate_aa_fill_rect_geometry()
71 set_inset_fan(fan0Pos, vertexStride, devRect, -SK_ScalarHalf, -SK_ScalarHalf); in generate_aa_fill_rect_geometry()
72 set_inset_fan(fan1Pos, vertexStride, devRect, inset, inset); in generate_aa_fill_rect_geometry()
173 const SkRect& devRect, in Make() argument
177 return Helper::FactoryHelper<AAFillRectOp>(std::move(paint), viewMatrix, rect, devRect, in Make()
185 const SkRect& devRect, in AAFillRectOp() argument
191 new (mem) RectWithLocalMatrixInfo(color, viewMatrix, rect, devRect, *localMatrix); in AAFillRectOp()
194 new (mem) RectInfo(color, viewMatrix, rect, devRect); in AAFillRectOp()
[all …]
DGrAAStrokeRectOp.cpp47 SkRect devRect; in compute_rects() local
48 viewMatrix.mapRect(&devRect, rect); in compute_rects()
64 *devOutside = devRect; in compute_rects()
65 *devOutsideAssist = devRect; in compute_rects()
66 *devInside = devRect; in compute_rects()
76 SkScalar w = devRect.width() - dx; in compute_rects()
77 SkScalar h = devRect.height() - dy; in compute_rects()
83 devInside->fLeft = devInside->fRight = devRect.centerX(); in compute_rects()
84 devInside->fTop = devInside->fBottom = devRect.centerY(); in compute_rects()
DGrShadowRRectOp.cpp190 ShadowCircularRRectOp(GrColor color, const SkRect& devRect, in ShadowCircularRRectOp() argument
194 SkRect bounds = devRect; in ShadowCircularRRectOp()
217 if (insetWidth <= 0.5f*SkTMin(devRect.width(), devRect.height())) { in ShadowCircularRRectOp()
DGrOvalOpFactory.cpp1732 const SkRect& devRect, float devRadius, in Make() argument
1734 return Helper::FactoryHelper<CircularRRectOp>(std::move(paint), viewMatrix, devRect, in Make()
1738 const SkRect& devRect, float devRadius, float devStrokeWidth, bool strokeOnly) in CircularRRectOp() argument
1742 SkRect bounds = devRect; in CircularRRectOp()
1760 if (devStrokeWidth <= devRect.width() && devStrokeWidth <= devRect.height()) { in CircularRRectOp()
2076 const SkRect& devRect, float devXRadius, float devYRadius, in Make() argument
2106 return Helper::FactoryHelper<EllipticalRRectOp>(std::move(paint), viewMatrix, devRect, in Make()
2112 const SkRect& devRect, float devXRadius, float devYRadius, in EllipticalRRectOp() argument
2117 SkRect bounds = devRect; in EllipticalRRectOp()
/external/skia/src/core/
DSkRasterClip.cpp73 SkRect devRect; in op() local
74 ctm.mapRect(&devRect, localRect); in op()
75 ir = doAA ? devRect.roundOut() : devRect.round(); in op()
109 void SkConservativeClip::op(const SkIRect& devRect, SkRegion::Op op) { in op() argument
111 if (!fBounds.intersect(devRect)) { in op()
120 result.op(SkRegion(fBounds), SkRegion(devRect), op); in op()
365 SkRect devRect; in op() local
375 matrix.mapRect(&devRect, localRect); in op()
380 if (nearly_integral(devRect.fLeft) && nearly_integral(devRect.fTop) && in op()
381 nearly_integral(devRect.fRight) && nearly_integral(devRect.fBottom)) { in op()
[all …]
DSkClipStack.h380 bool quickContains(const SkRect& devRect) const { in quickContains() argument
381 return this->isWideOpen() || this->internalQuickContains(devRect); in quickContains()
550 bool internalQuickContains(const SkRect& devRect) const;
DSkClipStack.cpp752 SkRect devRect; in clipRect() local
753 matrix.mapRect(&devRect, rect); in clipRect()
755 if (!devRect.intersect(fClipRestrictionRect)) { in clipRect()
756 devRect.setEmpty(); in clipRect()
759 Element element(fSaveCount, devRect, op, doAA); in clipRect()
DSkDraw.cpp194 SkIRect devRect; in drawPaint() local
195 devRect.set(0, 0, fDst.width(), fDst.height()); in drawPaint()
222 SkScan::FillIRect(devRect, *fRC, blitter.get()); in drawPaint()
760 SkRect devRect; in drawRect() local
763 fMatrix->mapPoints(rect_points(devRect), rect_points(paintRect), 2); in drawRect()
764 devRect.sort(); in drawRect()
767 SkRect bbox = devRect; in drawRect()
789 looper.mapRect(&localDevRect, devRect); in drawRect()
DSkCanvas.cpp148 SkRect devRect; in wouldOverwriteEntireSurface() local
149 this->getTotalMatrix().mapRectScaleTranslate(&devRect, *rect); in wouldOverwriteEntireSurface()
150 if (!devRect.contains(bounds)) { in wouldOverwriteEntireSurface()
1567 static inline bool is_nan_or_clipped(const Sk4f& devRect, const Sk4f& devClip) { in is_nan_or_clipped() argument
1569 __m128 lLtT = _mm_unpacklo_ps(devRect.fVec, devClip.fVec); in is_nan_or_clipped()
1570 __m128 RrBb = _mm_unpackhi_ps(devClip.fVec, devRect.fVec); in is_nan_or_clipped()
1574 float32x4_t lLtT = vzipq_f32(devRect.fVec, devClip.fVec).val[0]; in is_nan_or_clipped()
1575 float32x4_t RrBb = vzipq_f32(devClip.fVec, devRect.fVec).val[1]; in is_nan_or_clipped()
1581 devRect.store(&devRectAsRect.fLeft); in is_nan_or_clipped()
1631 Sk4f devRect = Sk4f(min[2], min[3], max[0], max[1]); in quickReject() local
[all …]
/external/skia/src/gpu/gl/
DGrGLIRect.h56 void setRelativeTo(const GrGLIRect& glViewport, const SkIRect& devRect, GrSurfaceOrigin org) { in setRelativeTo()
57 this->setRelativeTo(glViewport, devRect.x(), devRect.y(), devRect.width(), devRect.height(), in setRelativeTo()
/external/skia/gm/
Dreveal.cpp61 SkRect devRect; in asDevSpaceRRect() local
62 ctm.mapRect(&devRect, fRRect.rect()); in asDevSpaceRRect()
66 *rr = SkRRect::MakeRectXY(devRect, scaledRad, scaledRad); in asDevSpaceRRect()
170 SkRect devRect; in asDevSpaceRRect() local
171 ctm.mapRect(&devRect, fRRect.rect()); in asDevSpaceRRect()
172 *rr = SkRRect::MakeOval(devRect); in asDevSpaceRRect()
218 SkRect devRect; in asDevSpaceRRect() local
219 ctm.mapRect(&devRect, fRect); in asDevSpaceRRect()
220 *rr = SkRRect::MakeRect(devRect); in asDevSpaceRRect()