Searched refs:pathBounds (Results 1 – 11 of 11) sorted by relevance
/third_party/skia/src/core/ |
D | SkDrawShadowInfo.cpp | 35 const SkRect& pathBounds, bool directional, in GetSpotShadowTransform() argument 40 SkScalar occluderHeight = heightFunc(pathBounds.centerX(), pathBounds.centerY()); in GetSpotShadowTransform() 58 if (SkScalarNearlyZero(pathBounds.width()) || SkScalarNearlyZero(pathBounds.height())) { in GetSpotShadowTransform() 64 ctm.mapRectToQuad(pts, pathBounds); in GetSpotShadowTransform() 70 SkScalar z = heightFunc(pathBounds.fLeft, pathBounds.fTop); in GetSpotShadowTransform() 72 z = heightFunc(pathBounds.fRight, pathBounds.fTop); in GetSpotShadowTransform() 74 z = heightFunc(pathBounds.fRight, pathBounds.fBottom); in GetSpotShadowTransform() 76 z = heightFunc(pathBounds.fLeft, pathBounds.fBottom); in GetSpotShadowTransform() 125 SkScalar xScale = 2/(pathBounds.fRight - pathBounds.fLeft); in GetSpotShadowTransform() 126 SkScalar yScale = 2/(pathBounds.fBottom - pathBounds.fTop); in GetSpotShadowTransform() [all …]
|
D | SkPictureCommon.h | 52 const SkRect& pathBounds = op.path.getBounds(); in operator() local 56 } else if (SkPaint::kFill_Style == paintStyle && pathBounds.width() < 64.f && in operator() 57 pathBounds.height() < 64.f && !op.path.isVolatile()) { in operator()
|
D | SkGlyph.cpp | 332 const SkRect& pathBounds = path->getBounds(); in ensureIntercepts() local 333 if (pathBounds.fBottom < bounds[0] || bounds[1] < pathBounds.fTop) { in ensureIntercepts()
|
D | SkDrawShadowInfo.h | 89 const SkRect& pathBounds, bool directional,
|
D | SkCanvas.cpp | 2127 const SkRect& pathBounds = path.getBounds(); in onDrawPath() local 2128 if (!path.isInverseFillType() && this->internalQuickReject(pathBounds, paint)) { in onDrawPath() 2131 if (path.isInverseFillType() && pathBounds.width() <= 0 && pathBounds.height() <= 0) { in onDrawPath() 2136 auto layer = this->aboutToDraw(this, paint, &pathBounds); in onDrawPath()
|
/third_party/skia/src/gpu/ |
D | GrDistanceFieldGenFromVector.cpp | 736 SkIRect pathBounds = xformPath.getBounds().roundOut(); in GrGenerateDistanceFieldFromPath() local 741 expectPathBounds.contains(pathBounds.fLeft, pathBounds.fTop)); in GrGenerateDistanceFieldFromPath() 742 SkASSERT(expectPathBounds.isEmpty() || pathBounds.isEmpty() || in GrGenerateDistanceFieldFromPath() 743 expectPathBounds.contains(pathBounds)); in GrGenerateDistanceFieldFromPath() 762 SkDEBUGCODE(pathBounds = workingPath.getBounds().roundOut()); in GrGenerateDistanceFieldFromPath() 764 expectPathBounds.contains(pathBounds.fLeft, pathBounds.fTop)); in GrGenerateDistanceFieldFromPath() 765 SkASSERT(expectPathBounds.isEmpty() || pathBounds.isEmpty() || in GrGenerateDistanceFieldFromPath() 766 expectPathBounds.contains(pathBounds)); in GrGenerateDistanceFieldFromPath()
|
/third_party/skia/src/gpu/geometry/ |
D | GrPathUtils.cpp | 36 const SkRect& pathBounds) { in scaleToleranceToSrc() argument 46 mat.setTranslate((i % 2) ? pathBounds.fLeft : pathBounds.fRight, in scaleToleranceToSrc() 47 (i < 2) ? pathBounds.fTop : pathBounds.fBottom); in scaleToleranceToSrc() 56 srcTol = std::max(pathBounds.width(), pathBounds.height()); in scaleToleranceToSrc()
|
D | GrPathUtils.h | 39 const SkRect& pathBounds);
|
D | GrTriangulator.cpp | 1505 const SkRect& pathBounds = fPath.getBounds(); in contoursToPolys() local 1506 Comparator c(pathBounds.width() > pathBounds.height() ? Comparator::Direction::kHorizontal in contoursToPolys()
|
/third_party/skia/tests/ |
D | ParsePathTest.cpp | 50 const SkRect& pathBounds = path.getBounds(); in DEF_TEST() local 51 REPORTER_ASSERT(reporter, expectedBounds == pathBounds); in DEF_TEST()
|
/third_party/skia/samplecode/ |
D | SampleVariableWidthStroker.cpp | 1280 const SkRect pathBounds = path.computeTightBounds(); in drawErrorCurve() local 1282 const float sx = box.width() / pathBounds.width(); in drawErrorCurve() 1291 axes.lineTo(pathBounds.width(), 0); in drawErrorCurve()
|