Home
last modified time | relevance | path

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

/third_party/skia/src/gpu/
DGrNativeRect.h25 static GrNativeRect MakeRelativeTo(GrSurfaceOrigin origin, int rtHeight, SkIRect devRect) { in MakeRelativeTo()
27 nativeRect.setRelativeTo(origin, rtHeight, devRect); in MakeRelativeTo()
31 static SkIRect MakeIRectRelativeTo(GrSurfaceOrigin origin, int rtHeight, SkIRect devRect) { in MakeIRectRelativeTo()
32 return MakeRelativeTo(origin, rtHeight, devRect).asSkIRect(); in MakeIRectRelativeTo()
57 void setRelativeTo(GrSurfaceOrigin org, int rtHeight, const SkIRect& devRect) { in setRelativeTo()
58 this->setRelativeTo(org, rtHeight, devRect.x(), devRect.y(), devRect.width(), in setRelativeTo()
59 devRect.height()); in setRelativeTo()
/third_party/flutter/skia/src/core/
DSkRasterClip.cpp74 SkRect devRect; in opRect() local
75 ctm.mapRect(&devRect, localRect); in opRect()
76 ir = doAA ? devRect.roundOut() : devRect.round(); in opRect()
110 void SkConservativeClip::opIRect(const SkIRect& devRect, SkRegion::Op op) { in opIRect() argument
112 if (!fBounds.intersect(devRect)) { in opIRect()
121 result.op(SkRegion(fBounds), SkRegion(devRect), op); in opIRect()
366 SkRect devRect; in op() local
376 matrix.mapRect(&devRect, localRect); in op()
381 if (nearly_integral(devRect.fLeft) && nearly_integral(devRect.fTop) && in op()
382 nearly_integral(devRect.fRight) && nearly_integral(devRect.fBottom)) { in op()
[all …]
DSkDraw.cpp79 SkIRect devRect; in drawPaint() local
80 devRect.set(0, 0, fDst.width(), fDst.height()); in drawPaint()
83 SkScan::FillIRect(devRect, *fRC, blitter.get()); in drawPaint()
633 SkRect devRect; in drawRect() local
636 fMatrix->mapPoints(rect_points(devRect), rect_points(paintRect), 2); in drawRect()
637 devRect.sort(); in drawRect()
640 SkRect bbox = devRect; in drawRect()
677 SkScan::AntiFillRect(devRect, clip, blitter); in drawRect()
679 SkScan::FillRect(devRect, clip, blitter); in drawRect()
684 SkScan::AntiFrameRect(devRect, strokeSize, clip, blitter); in drawRect()
[all …]
DSkClipStack.h332 bool quickContains(const SkRect& devRect) const { in quickContains() argument
333 return this->isWideOpen() || this->internalQuickContains(devRect); in quickContains()
498 bool internalQuickContains(const SkRect& devRect) const;
DSkCanvas.cpp99 SkRect devRect; in wouldOverwriteEntireSurface() local
100 this->getTotalMatrix().mapRectScaleTranslate(&devRect, *rect); in wouldOverwriteEntireSurface()
101 if (!devRect.contains(bounds)) { in wouldOverwriteEntireSurface()
1543 static inline bool is_nan_or_clipped(const Sk4f& devRect, const Sk4f& devClip) { in is_nan_or_clipped() argument
1545 __m128 lLtT = _mm_unpacklo_ps(devRect.fVec, devClip.fVec); in is_nan_or_clipped()
1546 __m128 RrBb = _mm_unpackhi_ps(devClip.fVec, devRect.fVec); in is_nan_or_clipped()
1550 float32x4_t lLtT = vzipq_f32(devRect.fVec, devClip.fVec).val[0]; in is_nan_or_clipped()
1551 float32x4_t RrBb = vzipq_f32(devClip.fVec, devRect.fVec).val[1]; in is_nan_or_clipped()
1557 devRect.store(&devRectAsRect.fLeft); in is_nan_or_clipped()
1607 Sk4f devRect = Sk4f(min[2], min[3], max[0], max[1]); in quickReject() local
[all …]
DSkClipStack.cpp165 SkRect devRect; in initRect() local
166 m.mapRect(&devRect, rect); in initRect()
167 fDeviceSpaceRRect.setRect(devRect); in initRect()
/third_party/flutter/skia/src/gpu/gl/
DGrGLIRect.h59 void setRelativeTo(int rtHeight, const SkIRect& devRect, GrSurfaceOrigin org) { in setRelativeTo()
60 this->setRelativeTo(rtHeight, devRect.x(), devRect.y(), devRect.width(), devRect.height(), in setRelativeTo()
/third_party/skia/src/core/
DSkRasterClip.cpp152 SkRect devRect = matrix.mapRect(localRect); in op() local
156 if (nearly_integral(devRect.fLeft) && nearly_integral(devRect.fTop) && in op()
157 nearly_integral(devRect.fRight) && nearly_integral(devRect.fBottom)) { in op()
163 (void)fBW.op(devRect.round(), (SkRegion::Op) op); in op()
168 (void)fAA.op(devRect, op, doAA); in op()
DSkRasterClipStack.h79 SkIRect devRect = rect; in replaceClip() local
80 if (!devRect.intersect(fRootBounds)) { in replaceClip()
83 this->writable_rc().setRect(devRect); in replaceClip()
DSkDraw.cpp83 SkIRect devRect; in drawPaint() local
84 devRect.setWH(fDst.width(), fDst.height()); in drawPaint()
87 SkScan::FillIRect(devRect, *fRC, blitter.get()); in drawPaint()
635 SkRect devRect; in drawRect() local
638 ctm.mapPoints(rect_points(devRect), rect_points(paintRect), 2); in drawRect()
639 devRect.sort(); in drawRect()
642 SkRect bbox = devRect; in drawRect()
679 SkScan::AntiFillRect(devRect, clip, blitter); in drawRect()
681 SkScan::FillRect(devRect, clip, blitter); in drawRect()
686 SkScan::AntiFrameRect(devRect, strokeSize, clip, blitter); in drawRect()
[all …]
DSkClipStack.h358 bool quickContains(const SkRect& devRect) const { in quickContains() argument
359 return this->isWideOpen() || this->internalQuickContains(devRect); in quickContains()
378 void replaceClip(const SkRect& devRect, bool doAA);
516 bool internalQuickContains(const SkRect& devRect) const;
DSkClipStack.cpp189 SkRect devRect; in initRect() local
190 m.mapRect(&devRect, rect); in initRect()
191 fDeviceSpaceRRect.setRect(devRect); in initRect()
DSkCanvas.cpp113 SkRect devRect; in wouldOverwriteEntireSurface() local
114 this->getTotalMatrix().mapRectScaleTranslate(&devRect, *rect); in wouldOverwriteEntireSurface()
115 if (!devRect.contains(bounds)) { in wouldOverwriteEntireSurface()
1625 SkRect devRect = SkMatrixPriv::MapRect(fMCRec->fMatrix, src); in quickReject() local
1626 return !devRect.isFinite() || !devRect.intersects(fQuickRejectBounds); in quickReject()
/third_party/flutter/skia/src/gpu/ops/
DGrStrokeRectOp.cpp255 SkRect devRect; in compute_aa_rects() local
256 viewMatrix.mapRect(&devRect, rect); in compute_aa_rects()
272 *devOutside = devRect; in compute_aa_rects()
273 *devOutsideAssist = devRect; in compute_aa_rects()
274 *devInside = devRect; in compute_aa_rects()
284 SkScalar w = devRect.width() - dx; in compute_aa_rects()
285 SkScalar h = devRect.height() - dy; in compute_aa_rects()
291 devInside->fLeft = devInside->fRight = devRect.centerX(); in compute_aa_rects()
292 devInside->fTop = devInside->fBottom = devRect.centerY(); in compute_aa_rects()
DGrShadowRRectOp.cpp191 ShadowCircularRRectOp(GrColor color, const SkRect& devRect, in ShadowCircularRRectOp() argument
194 SkRect bounds = devRect; in ShadowCircularRRectOp()
213 if (insetWidth <= 0.5f*SkTMin(devRect.width(), devRect.height())) { in ShadowCircularRRectOp()
DGrOvalOpFactory.cpp2334 const SkRect& devRect, in Make() argument
2339 devRect, devRadius, in Make()
2343 const SkMatrix& viewMatrix, const SkRect& devRect, float devRadius, in CircularRRectOp() argument
2348 SkRect bounds = devRect; in CircularRRectOp()
2366 if (devStrokeWidth <= devRect.width() && devStrokeWidth <= devRect.height()) { in CircularRRectOp()
2665 const SkRect& devRect, in Make() argument
2699 viewMatrix, devRect, in Make()
2705 const SkMatrix& viewMatrix, const SkRect& devRect, float devXRadius, in EllipticalRRectOp() argument
2712 SkRect bounds = devRect; in EllipticalRRectOp()
/third_party/skia/src/gpu/ops/
DStrokeRectOp.cpp323 SkRect devRect; in compute_aa_rects() local
324 viewMatrix.mapRect(&devRect, rect); in compute_aa_rects()
330 if (!devRect.intersect(visibilityBounds)) { in compute_aa_rects()
334 *devOutside = devRect; in compute_aa_rects()
335 *devOutsideAssist = devRect; in compute_aa_rects()
336 *devInside = devRect; in compute_aa_rects()
346 SkScalar w = devRect.width() - dx; in compute_aa_rects()
347 SkScalar h = devRect.height() - dy; in compute_aa_rects()
353 devInside->fLeft = devInside->fRight = devRect.centerX(); in compute_aa_rects()
354 devInside->fTop = devInside->fBottom = devRect.centerY(); in compute_aa_rects()
DShadowRRectOp.cpp196 ShadowCircularRRectOp(GrColor color, const SkRect& devRect, in ShadowCircularRRectOp() argument
201 SkRect bounds = devRect; in ShadowCircularRRectOp()
220 if (insetWidth <= 0.5f*std::min(devRect.width(), devRect.height())) { in ShadowCircularRRectOp()
DGrOvalOpFactory.cpp2515 const SkRect& devRect, in Make() argument
2520 devRect, devRadius, in Make()
2524 const SkMatrix& viewMatrix, const SkRect& devRect, float devRadius, in CircularRRectOp() argument
2529 SkRect bounds = devRect; in CircularRRectOp()
2547 if (devStrokeWidth <= devRect.width() && devStrokeWidth <= devRect.height()) { in CircularRRectOp()
2880 const SkRect& devRect, in Make() argument
2914 viewMatrix, devRect, in Make()
2920 const SkMatrix& viewMatrix, const SkRect& devRect, float devXRadius, in EllipticalRRectOp() argument
2927 SkRect bounds = devRect; in EllipticalRRectOp()