Home
last modified time | relevance | path

Searched refs:pathBounds (Results 1 – 23 of 23) 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.cpp23 const SkRect& pathBounds, bool directional, in GetSpotShadowTransform() argument
28 SkScalar occluderHeight = heightFunc(pathBounds.centerX(), pathBounds.centerY()); in GetSpotShadowTransform()
46 if (SkScalarNearlyZero(pathBounds.width()) || SkScalarNearlyZero(pathBounds.height())) { in GetSpotShadowTransform()
52 ctm.mapRectToQuad(pts, pathBounds); in GetSpotShadowTransform()
58 SkScalar z = heightFunc(pathBounds.fLeft, pathBounds.fTop); in GetSpotShadowTransform()
60 z = heightFunc(pathBounds.fRight, pathBounds.fTop); in GetSpotShadowTransform()
62 z = heightFunc(pathBounds.fRight, pathBounds.fBottom); in GetSpotShadowTransform()
64 z = heightFunc(pathBounds.fLeft, pathBounds.fBottom); in GetSpotShadowTransform()
113 SkScalar xScale = 2/(pathBounds.fRight - pathBounds.fLeft); in GetSpotShadowTransform()
114 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()
DSkGlyph.cpp334 const SkRect& pathBounds = path->getBounds(); in ensureIntercepts() local
335 if (pathBounds.fBottom < bounds[0] || bounds[1] < pathBounds.fTop) { in ensureIntercepts()
DSkDrawShadowInfo.h80 const SkRect& pathBounds, bool directional,
DSkCanvas.cpp2027 const SkRect& pathBounds = path.getBounds(); in onDrawPath() local
2028 if (!path.isInverseFillType() && this->internalQuickReject(pathBounds, paint)) { in onDrawPath()
2031 if (path.isInverseFillType() && pathBounds.width() <= 0 && pathBounds.height() <= 0) { in onDrawPath()
2036 AutoLayerForImageFilter layer(this, paint, &pathBounds); in onDrawPath()
/external/skia/src/gpu/tessellate/
DGrFillPathShader.cpp50 const SkRect& b = geomProc.cast<GrFillBoundingBoxShader>().pathBounds(); in setData()
131 const char* pathBounds; in emitVertexCode() local
133 nullptr, kVertex_GrShaderFlag, kFloat4_GrSLType, "path_bounds", &pathBounds); in emitVertexCode()
145 vertexpos += devoutset;)", pathBounds, pathBounds, viewMatrix, viewMatrix); in emitVertexCode()
DGrFillPathShader.h106 GrFillBoundingBoxShader(const SkMatrix& viewMatrix, SkPMColor4f color, const SkRect& pathBounds) in GrFillBoundingBoxShader() argument
109 , fPathBounds(pathBounds) { in GrFillBoundingBoxShader()
112 const SkRect& pathBounds() const { return fPathBounds; } in pathBounds() function
/external/skia/src/gpu/
DGrDistanceFieldGenFromVector.cpp723 SkIRect pathBounds = xformPath.getBounds().roundOut(); in GrGenerateDistanceFieldFromPath() local
728 expectPathBounds.contains(pathBounds.fLeft, pathBounds.fTop)); in GrGenerateDistanceFieldFromPath()
729 SkASSERT(expectPathBounds.isEmpty() || pathBounds.isEmpty() || in GrGenerateDistanceFieldFromPath()
730 expectPathBounds.contains(pathBounds)); in GrGenerateDistanceFieldFromPath()
749 SkDEBUGCODE(pathBounds = workingPath.getBounds().roundOut()); in GrGenerateDistanceFieldFromPath()
751 expectPathBounds.contains(pathBounds.fLeft, pathBounds.fTop)); in GrGenerateDistanceFieldFromPath()
752 SkASSERT(expectPathBounds.isEmpty() || pathBounds.isEmpty() || in GrGenerateDistanceFieldFromPath()
753 expectPathBounds.contains(pathBounds)); in GrGenerateDistanceFieldFromPath()
DGrTriangulator.cpp1407 const SkRect& pathBounds = fPath.getBounds(); in contoursToPolys() local
1408 Comparator c(pathBounds.width() > pathBounds.height() ? Comparator::Direction::kHorizontal in contoursToPolys()
/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/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()
/external/skia/src/gpu/geometry/
DGrPathUtils.cpp36 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()
DGrPathUtils.h38 const SkRect& pathBounds);
/external/skia/samplecode/
DSampleVariableWidthStroker.cpp1280 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()