Home
last modified time | relevance | path

Searched refs:pathBounds (Results 1 – 20 of 20) sorted by relevance

/external/skqp/src/core/
DSkDrawShadowInfo.cpp22 const SkRect& pathBounds, SkMatrix* shadowTransform, SkScalar* radius) { in GetSpotShadowTransform() argument
26 SkScalar occluderHeight = heightFunc(pathBounds.centerX(), pathBounds.centerY()); in GetSpotShadowTransform()
36 if (SkScalarNearlyZero(pathBounds.width()) || SkScalarNearlyZero(pathBounds.height())) { in GetSpotShadowTransform()
42 ctm.mapRectToQuad(pts, pathBounds); in GetSpotShadowTransform()
48 SkScalar z = heightFunc(pathBounds.fLeft, pathBounds.fTop); in GetSpotShadowTransform()
50 z = heightFunc(pathBounds.fRight, pathBounds.fTop); in GetSpotShadowTransform()
52 z = heightFunc(pathBounds.fRight, pathBounds.fBottom); in GetSpotShadowTransform()
54 z = heightFunc(pathBounds.fLeft, pathBounds.fBottom); in GetSpotShadowTransform()
103 SkScalar xScale = 2/(pathBounds.fRight - pathBounds.fLeft); in GetSpotShadowTransform()
104 SkScalar yScale = 2/(pathBounds.fBottom - pathBounds.fTop); in GetSpotShadowTransform()
[all …]
DSkPictureCommon.h52 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()
DSkDrawShadowInfo.h70 const SkRect& pathBounds, SkMatrix* shadowTransform, SkScalar* radius);
DSkStrike.cpp355 const SkRect& pathBounds = path->getBounds(); in findIntercepts() local
356 if (*(&pathBounds.fBottom - yAxis) < bounds[0] || bounds[1] < *(&pathBounds.fTop - yAxis)) { in findIntercepts()
DSkCanvas.cpp1997 const SkRect& pathBounds = path.getBounds(); in onDrawShadowRec() local
1999 LOOPER_BEGIN(paint, &pathBounds) in onDrawShadowRec()
2217 const SkRect& pathBounds = path.getBounds(); in onDrawPath() local
2220 if (this->quickReject(paint.computeFastBounds(pathBounds, &storage))) { in onDrawPath()
2225 if (pathBounds.width() <= 0 && pathBounds.height() <= 0) { in onDrawPath()
2232 LOOPER_BEGIN(paint, &pathBounds) in onDrawPath()
/external/skia/src/core/
DSkDrawShadowInfo.cpp22 const SkRect& pathBounds, SkMatrix* shadowTransform, SkScalar* radius) { in GetSpotShadowTransform() argument
26 SkScalar occluderHeight = heightFunc(pathBounds.centerX(), pathBounds.centerY()); in GetSpotShadowTransform()
36 if (SkScalarNearlyZero(pathBounds.width()) || SkScalarNearlyZero(pathBounds.height())) { in GetSpotShadowTransform()
42 ctm.mapRectToQuad(pts, pathBounds); in GetSpotShadowTransform()
48 SkScalar z = heightFunc(pathBounds.fLeft, pathBounds.fTop); in GetSpotShadowTransform()
50 z = heightFunc(pathBounds.fRight, pathBounds.fTop); in GetSpotShadowTransform()
52 z = heightFunc(pathBounds.fRight, pathBounds.fBottom); in GetSpotShadowTransform()
54 z = heightFunc(pathBounds.fLeft, pathBounds.fBottom); in GetSpotShadowTransform()
103 SkScalar xScale = 2/(pathBounds.fRight - pathBounds.fLeft); in GetSpotShadowTransform()
104 SkScalar yScale = 2/(pathBounds.fBottom - pathBounds.fTop); in GetSpotShadowTransform()
[all …]
DSkPictureCommon.h52 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()
DSkDrawShadowInfo.h70 const SkRect& pathBounds, SkMatrix* shadowTransform, SkScalar* radius);
DSkStrike.cpp377 const SkRect& pathBounds = path->getBounds(); in findIntercepts() local
378 if (*(&pathBounds.fBottom - yAxis) < bounds[0] || bounds[1] < *(&pathBounds.fTop - yAxis)) { in findIntercepts()
DSkCanvas.cpp1999 const SkRect& pathBounds = path.getBounds(); in onDrawShadowRec() local
2001 LOOPER_BEGIN(paint, &pathBounds) in onDrawShadowRec()
2253 const SkRect& pathBounds = path.getBounds(); in onDrawPath() local
2256 if (this->quickReject(paint.computeFastBounds(pathBounds, &storage))) { in onDrawPath()
2261 if (pathBounds.width() <= 0 && pathBounds.height() <= 0) { in onDrawPath()
2268 LOOPER_BEGIN(paint, &pathBounds) in onDrawPath()
/external/skqp/src/gpu/
DGrDistanceFieldGenFromVector.cpp748 SkIRect pathBounds = xformPath.getBounds().roundOut(); in GrGenerateDistanceFieldFromPath() local
754 expectPathBounds.contains(pathBounds.x(), pathBounds.y())); in GrGenerateDistanceFieldFromPath()
755 SkASSERT(expectPathBounds.isEmpty() || pathBounds.isEmpty() || in GrGenerateDistanceFieldFromPath()
756 expectPathBounds.contains(pathBounds)); in GrGenerateDistanceFieldFromPath()
772 SkDEBUGCODE(pathBounds = workingPath.getBounds().roundOut()); in GrGenerateDistanceFieldFromPath()
774 expectPathBounds.contains(pathBounds.x(), pathBounds.y())); in GrGenerateDistanceFieldFromPath()
775 SkASSERT(expectPathBounds.isEmpty() || pathBounds.isEmpty() || in GrGenerateDistanceFieldFromPath()
776 expectPathBounds.contains(pathBounds)); in GrGenerateDistanceFieldFromPath()
DGrPathUtils.cpp18 const SkRect& pathBounds) { in scaleToleranceToSrc() argument
28 mat.setTranslate((i % 2) ? pathBounds.fLeft : pathBounds.fRight, in scaleToleranceToSrc()
29 (i < 2) ? pathBounds.fTop : pathBounds.fBottom); in scaleToleranceToSrc()
38 srcTol = SkTMax(pathBounds.width(), pathBounds.height()); in scaleToleranceToSrc()
DGrPathUtils.h26 const SkRect& pathBounds);
DGrTessellator.cpp2112 const SkRect& pathBounds, bool antialias, VertexList* outerMesh, in contours_to_polys() argument
2114 Comparator c(pathBounds.width() > pathBounds.height() ? Comparator::Direction::kHorizontal in contours_to_polys()
/external/skia/src/gpu/
DGrDistanceFieldGenFromVector.cpp748 SkIRect pathBounds = xformPath.getBounds().roundOut(); in GrGenerateDistanceFieldFromPath() local
754 expectPathBounds.contains(pathBounds.x(), pathBounds.y())); in GrGenerateDistanceFieldFromPath()
755 SkASSERT(expectPathBounds.isEmpty() || pathBounds.isEmpty() || in GrGenerateDistanceFieldFromPath()
756 expectPathBounds.contains(pathBounds)); in GrGenerateDistanceFieldFromPath()
772 SkDEBUGCODE(pathBounds = workingPath.getBounds().roundOut()); in GrGenerateDistanceFieldFromPath()
774 expectPathBounds.contains(pathBounds.x(), pathBounds.y())); in GrGenerateDistanceFieldFromPath()
775 SkASSERT(expectPathBounds.isEmpty() || pathBounds.isEmpty() || in GrGenerateDistanceFieldFromPath()
776 expectPathBounds.contains(pathBounds)); in GrGenerateDistanceFieldFromPath()
DGrPathUtils.cpp18 const SkRect& pathBounds) { in scaleToleranceToSrc() argument
28 mat.setTranslate((i % 2) ? pathBounds.fLeft : pathBounds.fRight, in scaleToleranceToSrc()
29 (i < 2) ? pathBounds.fTop : pathBounds.fBottom); in scaleToleranceToSrc()
38 srcTol = SkTMax(pathBounds.width(), pathBounds.height()); in scaleToleranceToSrc()
DGrPathUtils.h26 const SkRect& pathBounds);
DGrTessellator.cpp2112 const SkRect& pathBounds, bool antialias, VertexList* outerMesh, in contours_to_polys() argument
2114 Comparator c(pathBounds.width() > pathBounds.height() ? Comparator::Direction::kHorizontal in contours_to_polys()
/external/skqp/tests/
DParsePathTest.cpp50 const SkRect& pathBounds = path.getBounds(); in DEF_TEST() local
51 REPORTER_ASSERT(reporter, expectedBounds == pathBounds); in DEF_TEST()
/external/skia/tests/
DParsePathTest.cpp50 const SkRect& pathBounds = path.getBounds(); in DEF_TEST() local
51 REPORTER_ASSERT(reporter, expectedBounds == pathBounds); in DEF_TEST()