/external/skqp/src/core/ |
D | SkDrawShadowInfo.cpp | 22 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 …]
|
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 | SkDrawShadowInfo.h | 70 const SkRect& pathBounds, SkMatrix* shadowTransform, SkScalar* radius);
|
D | SkStrike.cpp | 355 const SkRect& pathBounds = path->getBounds(); in findIntercepts() local 356 if (*(&pathBounds.fBottom - yAxis) < bounds[0] || bounds[1] < *(&pathBounds.fTop - yAxis)) { in findIntercepts()
|
D | SkCanvas.cpp | 1997 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/ |
D | SkDrawShadowInfo.cpp | 23 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 …]
|
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 | 334 const SkRect& pathBounds = path->getBounds(); in ensureIntercepts() local 335 if (pathBounds.fBottom < bounds[0] || bounds[1] < pathBounds.fTop) { in ensureIntercepts()
|
D | SkDrawShadowInfo.h | 80 const SkRect& pathBounds, bool directional,
|
D | SkCanvas.cpp | 2027 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/ |
D | GrFillPathShader.cpp | 50 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()
|
D | GrFillPathShader.h | 106 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/ |
D | GrDistanceFieldGenFromVector.cpp | 723 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()
|
D | GrTriangulator.cpp | 1407 const SkRect& pathBounds = fPath.getBounds(); in contoursToPolys() local 1408 Comparator c(pathBounds.width() > pathBounds.height() ? Comparator::Direction::kHorizontal in contoursToPolys()
|
/external/skqp/src/gpu/ |
D | GrDistanceFieldGenFromVector.cpp | 748 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()
|
D | GrPathUtils.cpp | 18 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()
|
D | GrPathUtils.h | 26 const SkRect& pathBounds);
|
D | GrTessellator.cpp | 2112 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/ |
D | ParsePathTest.cpp | 50 const SkRect& pathBounds = path.getBounds(); in DEF_TEST() local 51 REPORTER_ASSERT(reporter, expectedBounds == pathBounds); in DEF_TEST()
|
/external/skia/tests/ |
D | ParsePathTest.cpp | 50 const SkRect& pathBounds = path.getBounds(); in DEF_TEST() local 51 REPORTER_ASSERT(reporter, expectedBounds == pathBounds); in DEF_TEST()
|
/external/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 | 38 const SkRect& pathBounds);
|
/external/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()
|