/external/webkit/Source/WebCore/svg/ |
H A D | SVGPathSegListSource.cpp | 102 SVGPathSegCurvetoCubic* cubic = static_cast<SVGPathSegCurvetoCubic*>(m_segment.get()); local 103 point1 = FloatPoint(cubic->x1(), cubic->y1()); 104 point2 = FloatPoint(cubic->x2(), cubic->y2()); 105 targetPoint = FloatPoint(cubic->x(), cubic->y());
|
/external/skia/gpu/src/ |
H A D | GrDrawMesh.cpp | 119 SkCubicBoundary cubic; local 120 set_cubic(cubic.fPts + 0, 0, 0, w, 0, scale); 121 set_cubic(cubic.fPts + 3, w, 0, w, h, scale); 122 set_cubic(cubic.fPts + 6, w, h, 0, h, -scale); 123 set_cubic(cubic.fPts + 9, 0, h, 0, 0, scale); 126 patch.setBoundary(&cubic);
|
/external/skia/samplecode/ |
H A D | SamplePatch.cpp | 73 static void eval_patch_edge(const SkPoint cubic[], SkPoint samples[], int segs) { argument 77 samples[0] = cubic[0]; 80 SkEvalCubicAt(cubic, t, &samples[i], NULL, NULL);
|
H A D | SampleWarp.cpp | 127 SkCubicBoundary cubic; local 128 set_cubic(cubic.fPts + 0, 0, 0, 100, 0, scale); 129 set_cubic(cubic.fPts + 3, 100, 0, 100, 100, scale); 130 set_cubic(cubic.fPts + 6, 100, 100, 0, 100, -scale); 131 set_cubic(cubic.fPts + 9, 0, 100, 0, 0, 0); 134 patch.setBoundary(&cubic); 155 SkCubicBoundary cubic; local 156 set_cubic(cubic.fPts + 0, 0, 0, 100, 0, 0); 157 set_cubic(cubic.fPts + 3, 100, 0, 100, 100, 0); 158 set_cubic(cubic [all...] |
/external/webkit/Source/WebCore/platform/graphics/gpu/ |
H A D | LoopBlinnMathUtils.cpp | 100 // A roundoff factor in the cubic classification and texture coordinate 245 // Evaluates the point on the source cubic specified by t, 0 <= t <= 1.0. 246 FloatPoint evaluateCubicAt(const FloatPoint cubic[4], float t) argument 248 return FloatPoint(evaluateCubic(cubic[0].x(), cubic[1].x(), cubic[2].x(), cubic[3].x(), t), 249 evaluateCubic(cubic[0].y(), cubic[1].y(), cubic[ 252 xRayCrossesMonotonicCubic(const XRay& xRay, const FloatPoint cubic[4], bool& ambiguous) argument [all...] |
H A D | LoopBlinnPathProcessor.cpp | 127 // Describes a segment of the path: either a cubic or a line segment. 151 // Initializer for cubic curve segments. 254 // segment. This operation only makes sense for cubic type segments. 277 // can be called either for line or cubic type segments. 317 builder.append(kind() == Line ? "line" : "cubic"); 666 // Need to degree elevate the quadratic into a cubic 667 SkPoint cubic[4]; local 668 SkConvertQuadToCubic(points, cubic); 671 cubic[0], cubic[ [all...] |
/external/skia/src/core/ |
H A D | SkGeometry.cpp | 607 up with 1.0, hence the need to check and just return the last cubic as 652 // have src point to the remaining cubic (after the chop) 659 // if we can't, just create a degenerate cubic 696 /** Given 4 points on a cubic bezier, chop it into 1, 2, 3 beziers such that 699 0 dst[0..3] is the original cubic 741 After some canceling of the cubic term, we get 1013 bool SkXRayCrossesMonotonicCubic(const SkXRay& pt, const SkPoint cubic[4], bool* ambiguous) { argument 1019 // first and last points since this cubic is monotonic 1020 SkScalar min_y = SkMinScalar(cubic[0].fY, cubic[ 1100 SkNumXRayCrossingsForCubic(const SkXRay& pt, const SkPoint cubic[4], bool* ambiguous) argument [all...] |