/external/skia/include/core/ |
D | SkPoint.h | 28 int32_t fX, fY; member 37 int32_t y() const { return fY; } in y() 39 void setY(int32_t y) { fY = y; } in setY() 44 bool isZero() const { return (fX | fY) == 0; } in isZero() 49 void setZero() { fX = fY = 0; } in setZero() 52 void set(int32_t x, int32_t y) { fX = x; fY = y; } in set() 76 void negate() { fX = -fX; fY = -fY; } in negate() 84 neg.fY = -fY; 91 fY += v.fY; 97 fY -= v.fY; [all …]
|
/external/skia/src/core/ |
D | SkStrokerPriv.cpp | 26 path->lineTo(stop.fX, stop.fY); in ButtCapper() 34 SkScalar py = pivot.fY; in RoundCapper() 36 SkScalar ny = normal.fY; in RoundCapper() 45 stop.fX, stop.fY); in RoundCapper() 57 path->setLastPt(pivot.fX + normal.fX + parallel.fX, pivot.fY + normal.fY + parallel.fY); in SquareCapper() 58 path->lineTo(pivot.fX - normal.fX + parallel.fX, pivot.fY - normal.fY + parallel.fY); in SquareCapper() 62 path->lineTo(pivot.fX + normal.fX + parallel.fX, pivot.fY + normal.fY + parallel.fY); in SquareCapper() 63 path->lineTo(pivot.fX - normal.fX + parallel.fX, pivot.fY - normal.fY + parallel.fY); in SquareCapper() 64 path->lineTo(stop.fX, stop.fY); in SquareCapper() 72 return SkScalarMul(before.fX, after.fY) - SkScalarMul(before.fY, after.fX) > 0; in is_clockwise() [all …]
|
D | SkEdgeClipper.cpp | 42 if (src[0].fY > src[count - 1].fY) { in sort_increasing_Y() 75 return chopMonoQuadAt(pts[0].fY, pts[1].fY, pts[2].fY, y, t); in chopMonoQuadAtY() 88 if (pts[0].fY < clip.fTop) { in chop_quad_in_Y() 92 clamp_ge(tmp[2].fY, clip.fTop); in chop_quad_in_Y() 93 clamp_ge(tmp[3].fY, clip.fTop); in chop_quad_in_Y() 100 if (pts[i].fY < clip.fTop) { in chop_quad_in_Y() 101 pts[i].fY = clip.fTop; in chop_quad_in_Y() 108 if (pts[2].fY > clip.fBottom) { in chop_quad_in_Y() 111 clamp_le(tmp[1].fY, clip.fBottom); in chop_quad_in_Y() 112 clamp_le(tmp[2].fY, clip.fBottom); in chop_quad_in_Y() [all …]
|
D | SkGeometry.cpp | 29 if (pt.fY == pts[0].fY) { in SkXRayCrossesLine() 35 if (pt.fY < pts[0].fY && pt.fY < pts[1].fY) in SkXRayCrossesLine() 37 if (pt.fY > pts[0].fY && pt.fY > pts[1].fY) in SkXRayCrossesLine() 42 if (SkScalarNearlyZero(pts[0].fY - pts[1].fY)) in SkXRayCrossesLine() 49 *ambiguous = (pt.fY == pts[1].fY); in SkXRayCrossesLine() 56 if (pt.fY == pts[1].fY) { in SkXRayCrossesLine() 66 SkScalar delta_y = pts[1].fY - pts[0].fY; in SkXRayCrossesLine() 69 SkScalar b = pts[0].fY - SkScalarMul(slope, pts[0].fX); in SkXRayCrossesLine() 71 SkScalar x = SkScalarDiv(pt.fY - b, slope); in SkXRayCrossesLine() 241 pt->set(eval_quad(&src[0].fX, t), eval_quad(&src[0].fY, t)); in SkEvalQuadAt() [all …]
|
D | SkLineClipper.cpp | 5 SkScalar dy = src[1].fY - src[0].fY; in sect_with_horizontal() 13 double Y0 = src[0].fY; in sect_with_horizontal() 15 double Y1 = src[1].fY; in sect_with_horizontal() 19 return src[0].fX + SkScalarMulDiv(Y - src[0].fY, src[1].fX - src[0].fX, in sect_with_horizontal() 29 return SkScalarAve(src[0].fY, src[1].fY); in sect_with_vertical() 35 double Y0 = src[0].fY; in sect_with_vertical() 37 double Y1 = src[1].fY; in sect_with_vertical() 41 return src[0].fY + SkScalarMulDiv(X - src[0].fX, src[1].fY - src[0].fY, in sect_with_vertical() 83 if (src[0].fY < src[1].fY) { in IntersectLine() 95 if (tmp[index0].fY < clip.fTop) { in IntersectLine() [all …]
|
D | SkStroke.cpp | 25 return SkScalarNearlyZero(v.fX) && SkScalarNearlyZero(v.fY); in degenerate_vector() 31 SkScalarNearlyZero(a.fY - b.fY, tolerance); in degenerate_line() 56 if (!unitNormal->setNormalize(after.fX - before.fX, after.fY - before.fY)) { in set_normal_unitnormal() 67 if (!unitNormal->setNormalize(vec.fX, vec.fY)) { in set_normal_unitnormal() 134 SkScalar prevY = fPrevPt.fY; in preJoinTo() 142 fFirstOuterPt.set(prevX + normal->fX, prevY + normal->fY); in preJoinTo() 144 fOuter.moveTo(fFirstOuterPt.fX, fFirstOuterPt.fY); in preJoinTo() 145 fInner.moveTo(prevX - normal->fX, prevY - normal->fY); in preJoinTo() 172 fOuter.moveTo(pt.fX, pt.fY); in finishContour() 224 fOuter.lineTo(currPt.fX + normal.fX, currPt.fY + normal.fY); in line_to() [all …]
|
D | SkQuadClipper.cpp | 61 return chopMonoQuadAt(pts[0].fY, pts[1].fY, pts[2].fY, y, t); in chopMonoQuadAtY() 74 if (srcPts[0].fY > srcPts[2].fY) { in clipQuad() 87 if (dst[2].fY <= ctop || dst[0].fY >= cbot) { in clipQuad() 95 if (dst[0].fY < ctop) { in clipQuad() 105 if (dst[i].fY < ctop) { in clipQuad() 106 dst[i].fY = ctop; in clipQuad() 113 if (dst[2].fY > cbot) { in clipQuad() 122 if (dst[i].fY > cbot) { in clipQuad() 123 dst[i].fY = cbot; in clipQuad()
|
D | SkMatrix.cpp | 900 dst->fY = src->fY + ty; in Trans_pts() 916 dst->fY = SkScalarMul(src->fY, my); in Scale_pts() 934 dst->fY = SkScalarMulAdd(src->fY, my, ty); in ScaleTrans_pts() 952 SkScalar sy = src->fY; in Rot_pts() 955 dst->fY = SkScalarMul(sx, ky) + SkScalarMul(sy, my); in Rot_pts() 974 SkScalar sy = src->fY; in RotTrans_pts() 977 dst->fY = SkScalarMul(sx, ky) + SkScalarMulAdd(sy, my, ty); in RotTrans_pts() 994 SkScalar sy = src->fY; in Persp_pts() 1013 dst->fY = SkScalarMul(y, z); in Persp_pts() 1052 proc(*this, src[i].fX, src[i].fY, &tmp); in mapVectors() [all …]
|
D | SkConcaveToTriangles.cpp | 256 if (ve.fY == 0) { in compare() 262 if (ve.fY > 0) d = -d; in compare() 432 if (v0.vt->point().fY < v1.vt->point().fY) return true; in operator <() 433 if (v0.vt->point().fY > v1.vt->point().fY) return false; in operator <() 441 if (v0.vt->point().fY > v1.vt->point().fY) return true; in operator >() 442 if (v0.vt->point().fY < v1.vt->point().fY) return false; in operator >() 466 vPrev.fY = prev()->point().fY - point().fY; in classify() 468 vNext.fY = next()->point().fY - point().fY; in classify() 472 if (vPrev.fY < 0) { in classify() 473 if (vNext.fY > 0) { in classify() [all …]
|
D | SkCubicClipper.cpp | 30 ycrv[0] = pts[0].fY - y; in chopMonoCubicAtY() 31 ycrv[1] = pts[1].fY - y; in chopMonoCubicAtY() 32 ycrv[2] = pts[2].fY - y; in chopMonoCubicAtY() 33 ycrv[3] = pts[3].fY - y; in chopMonoCubicAtY() 125 if (srcPts[0].fY > srcPts[3].fY) { in clipCubic() 139 if (dst[3].fY <= ctop || dst[0].fY >= cbot) { in clipCubic() 147 if (dst[0].fY < ctop && chopMonoCubicAtY(dst, ctop, &t)) { in clipCubic() 155 if (dst[3].fY > cbot && chopMonoCubicAtY(dst, cbot, &t)) { in clipCubic()
|
D | SkEdge.cpp | 43 y0 = int(p0.fY * scale); in setLine() 45 y1 = int(p1.fY * scale); in setLine() 49 y0 = p0.fY >> shift; in setLine() 51 y1 = p1.fY >> shift; in setLine() 184 y0 = int(pts[0].fY * scale); in setQuadratic() 186 y1 = int(pts[1].fY * scale); in setQuadratic() 188 y2 = int(pts[2].fY * scale); in setQuadratic() 192 y0 = pts[0].fY >> shift; in setQuadratic() 194 y1 = pts[1].fY >> shift; in setQuadratic() 196 y2 = pts[2].fY >> shift; in setQuadratic() [all …]
|
D | SkPoint.cpp | 24 dst->fX = -fY; in rotateCW() 25 dst->fY = tmp; in rotateCW() 33 dst->fX = fY; in rotateCCW() 34 dst->fY = -tmp; in rotateCCW() 67 dst->fX = -fY; in rotateCW() 68 dst->fY = tmp; in rotateCW() 76 dst->fX = fY; in rotateCCW() 77 dst->fY = -tmp; in rotateCCW() 82 dst->set(SkScalarMul(fX, scale), SkScalarMul(fY, scale)); in scale() 88 return this->setLength(fX, fY, SK_Scalar1); in normalize() [all …]
|
/external/skia/src/animator/ |
D | SkParseSVGPath.cpp | 33 dest.set(SkScalarAve(a.fX, b.fX),SkScalarAve(a.fY, b.fY)); in midPt() 49 m.set(SkScalarHalf(3*j.fX - c.fX), SkScalarHalf(3*j.fY - c.fY)); in quadApprox() 50 n.set(SkScalarHalf(3*o.fX -q.fX), SkScalarHalf(3*o.fY - q.fY)); in quadApprox() 55 m.set(SkScalarHalf(3*p.fX - c.fX), SkScalarHalf(3*p.fY - c.fY)); in quadApprox() 56 n.set(SkScalarHalf(3*l.fX -p2.fX),SkScalarHalf(3*l.fY -p2.fY)); in quadApprox() 106 value[index].fY += relative->fY; in find_points() 165 fPath.lineTo(x, c.fY); in parseSVG() 171 data = find_scalar(data, &y, relative, c.fY); in parseSVG() 173 c.fY = y; in parseSVG() 184 points[0].fY -= lastc.fY - c.fY; in parseSVG() [all …]
|
/external/skia/gpu/src/ |
D | GrPathUtils.cpp | 53 { GrScalarAve(p0.fX, p1.fX), GrScalarAve(p0.fY, p1.fY) }, in generateQuadraticPoints() 54 { GrScalarAve(p1.fX, p2.fX), GrScalarAve(p1.fY, p2.fY) }, in generateQuadraticPoints() 56 GrPoint r = { GrScalarAve(q[0].fX, q[1].fX), GrScalarAve(q[0].fY, q[1].fY) }; in generateQuadraticPoints() 92 { GrScalarAve(p0.fX, p1.fX), GrScalarAve(p0.fY, p1.fY) }, in generateCubicPoints() 93 { GrScalarAve(p1.fX, p2.fX), GrScalarAve(p1.fY, p2.fY) }, in generateCubicPoints() 94 { GrScalarAve(p2.fX, p3.fX), GrScalarAve(p2.fY, p3.fY) } in generateCubicPoints() 97 { GrScalarAve(q[0].fX, q[1].fX), GrScalarAve(q[0].fY, q[1].fY) }, in generateCubicPoints() 98 { GrScalarAve(q[1].fX, q[2].fX), GrScalarAve(q[1].fY, q[2].fY) } in generateCubicPoints() 100 GrPoint s = { GrScalarAve(r[0].fX, r[1].fX), GrScalarAve(r[0].fY, r[1].fY) }; in generateCubicPoints()
|
D | GrMatrix.cpp | 333 pt.fY = fM[kSkewY]*x + fM[kScaleY]*y; 377 dst[i].fY = GrMul(src[i].fY, fM[kScaleY]); 385 dst[i].fY = src[i].fY + fM[kTransY]; 392 dst[i].fY = GrMul(src[i].fY, fM[kScaleY]) + fM[kTransY]; 399 dst[i].fX = src[i].fX + GrMul(src[i].fY, fM[kSkewX]); 400 dst[i].fY = src[i].fY + GrMul(src[i].fX, fM[kSkewY]); 404 GrScalar newX = src[i].fX + GrMul(src[i].fY, fM[kSkewX]); 405 dst[i].fY = src[i].fY + GrMul(src[i].fX, fM[kSkewY]); 414 dst[i].fX = GrMul(src[i].fX, fM[kScaleX]) + GrMul(src[i].fY, fM[kSkewX]); 415 dst[i].fY = GrMul(src[i].fY, fM[kScaleY]) + GrMul(src[i].fX, fM[kSkewY]); [all …]
|
/external/skia/src/utils/ |
D | SkCamera.cpp | 74 float mag = sk_float_sqrt(fX*fX + fY*fY + fZ*fZ); in normalize() 78 unit->fY = fY * scale; in normalize() 81 unit->fX = unit->fY = unit->fZ = 0; in normalize() 87 tmp2.setMul(fY, fY); in normalize() 97 unit->fY = SkFixedMul(fY, scale); in normalize() 100 unit->fX = unit->fY = unit->fZ = 0; in normalize() 108 SkUnitScalarMul(a.fY, b.fY) + in Dot() 117 SkScalar x = SkUnitScalarMul(a.fY, b.fZ) - SkUnitScalarMul(a.fZ, b.fY); in Cross() 118 SkScalar y = SkUnitScalarMul(a.fZ, b.fX) - SkUnitScalarMul(a.fX, b.fY); in Cross() 119 SkScalar z = SkUnitScalarMul(a.fX, b.fY) - SkUnitScalarMul(a.fY, b.fX); in Cross() [all …]
|
D | SkParsePath.cpp | 48 value[index].fY += relative->fY; in find_points() 107 path.lineTo(x, c.fY); in FromSVGString() 112 data = find_scalar(data, &y, relative, c.fY); in FromSVGString() 114 c.fY = y; in FromSVGString() 124 points[0].fY -= lastc.fY - c.fY; in FromSVGString() 139 points[0].fY = c.fY * 2 - lastc.fY; in FromSVGString() 149 if (fPath.isEmpty() && (f.fX != 0 || f.fY != 0)) { in FromSVGString() 162 path.moveTo(args[0].fX, args[0].fY); in FromSVGString() 163 path.lineTo(args[1].fX, args[1].fY); in FromSVGString()
|
/external/skia/src/effects/ |
D | SkCornerPathEffect.cpp | 35 step->set(b.fX - a.fX, b.fY - a.fY); in ComputeStep() 89 dst->quadTo(pts[0].fX, pts[0].fY, pts[0].fX + step.fX, in filterPath() 90 pts[0].fY + step.fY); in filterPath() 93 dst->lineTo(pts[1].fX - step.fX, pts[1].fY - step.fY); in filterPath() 120 if (firstStep.fX || firstStep.fY) { in filterPath() 121 dst->quadTo(lastCorner.fX, lastCorner.fY, in filterPath() 123 lastCorner.fY + firstStep.fY); in filterPath()
|
/external/skia/tests/ |
D | ClipCubicTest.cpp | 10 (float)crv[0].fX, (float)crv[0].fY, in PrintCurve() 11 (float)crv[1].fX, (float)crv[1].fY, in PrintCurve() 12 (float)crv[2].fX, (float)crv[2].fY, in PrintCurve() 13 (float)crv[3].fX, (float)crv[3].fY); in PrintCurve() 23 SkScalarAbs(c0[i].fY - c1[i].fY) > SkFloatToScalar(tol) in CurvesAreEqual() 39 crv[0].fX = SkFloatToScalar(x0); crv[0].fY = SkFloatToScalar(y0); in SetCurve() 40 crv[1].fX = SkFloatToScalar(x1); crv[1].fY = SkFloatToScalar(y1); in SetCurve() 41 crv[2].fX = SkFloatToScalar(x2); crv[2].fY = SkFloatToScalar(y2); in SetCurve() 42 crv[3].fX = SkFloatToScalar(x3); crv[3].fY = SkFloatToScalar(y3); in SetCurve()
|
/external/skia/gm/ |
D | gradients.cpp | 39 SkScalarAve(pts[0].fY, pts[1].fY)); in MakeRadial() 48 SkScalarAve(pts[0].fY, pts[1].fY)); in MakeSweep() 49 return SkGradientShader::CreateSweep(center.fX, center.fY, data.fColors, in MakeSweep() 57 SkScalarAve(pts[0].fY, pts[1].fY)); in Make2Radial() 59 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in Make2Radial()
|
/external/icu4c/layout/ |
D | MarkToBasePosnSubtables.cpp | 81 float anchorDiffY = baseAnchor.fY - markAnchor.fY; in process() 88 …erator->setCurrGlyphPositionAdjustment(anchorDiffX, anchorDiffY, -markAdvance.fX, -markAdvance.fY); in process() 102 pixels.fY += px.fY; in process() 109 …ment(anchorDiffX - baseAdvance.fX, anchorDiffY - baseAdvance.fY, -markAdvance.fX, -markAdvance.fY); in process()
|
/external/skia/bench/ |
D | GradientBench.cpp | 44 SkScalarAve(pts[0].fY, pts[1].fY)); in MakeRadial() 53 SkScalarAve(pts[0].fY, pts[1].fY)); in MakeSweep() 54 return SkGradientShader::CreateSweep(center.fX, center.fY, data.fColors, in MakeSweep() 62 SkScalarAve(pts[0].fY, pts[1].fY)); in Make2Radial() 64 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in Make2Radial()
|
/external/skia/samplecode/ |
D | SampleCull.cpp | 16 tang.setLength(pts[1].fX - pts[0].fX, pts[1].fY - pts[0].fY, bump); in addbump() 18 path->lineTo(SkScalarHalf(pts[0].fX + pts[1].fX) - tang.fY, in addbump() 19 SkScalarHalf(pts[0].fY + pts[1].fY) + tang.fX); in addbump() 75 array[n++].set(SkScalarRound(pts[0].fX), SkScalarRound(pts[0].fY)); in getpts() 78 array[n++].set(SkScalarRound(pts[1].fX), SkScalarRound(pts[1].fY)); in getpts() 164 cpp.moveTo(fPoints[0].fX, fPoints[0].fY); in onDrawContent() 166 cpp.lineTo(fPoints[i].fX, fPoints[i].fY); in onDrawContent()
|
D | SampleGradients.cpp | 70 SkScalarAve(pts[0].fY, pts[1].fY)); in MakeRadial() 79 SkScalarAve(pts[0].fY, pts[1].fY)); in MakeSweep() 80 return SkGradientShader::CreateSweep(center.fX, center.fY, data.fColors, in MakeSweep() 88 SkScalarAve(pts[0].fY, pts[1].fY)); in Make2Radial() 90 SkScalarInterp(pts[0].fY, pts[1].fY, SkIntToScalar(1)/4)); in Make2Radial() 101 SkScalarAve(pts[0].fY, pts[1].fY)); in Make2RadialConcentric()
|
/external/skia/src/pdf/ |
D | SkPDFUtils.cpp | 112 MoveTo(args[0].fX, args[0].fY, content); in EmitPath() 115 AppendLine(args[1].fX, args[1].fY, content); in EmitPath() 122 SkScalar ctl1Y = SkScalarDiv(args[0].fY + args[1].fY, three); in EmitPath() 124 SkScalar ctl2Y = SkScalarDiv(args[2].fY + args[1].fY, three); in EmitPath() 125 AppendCubic(ctl1X, ctl1Y, ctl2X, ctl2Y, args[2].fX, args[2].fY, in EmitPath() 130 AppendCubic(args[1].fX, args[1].fY, args[2].fX, args[2].fY, in EmitPath() 131 args[3].fX, args[3].fY, content); in EmitPath()
|