Searched defs:ellipse (Results 1 - 8 of 8) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
H A DRenderSVGEllipse.cpp91 SVGEllipseElement& ellipse = toSVGEllipseElement(*element()); local
93 SVGLengthContext lengthContext(&ellipse);
94 m_radii = FloatSize(ellipse.rx()->currentValue()->value(lengthContext), ellipse.ry()->currentValue()->value(lengthContext));
95 m_center = FloatPoint(ellipse.cx()->currentValue()->value(lengthContext), ellipse.cy()->currentValue()->value(lengthContext));
131 // This works by checking if the point satisfies the ellipse equation,
150 // This works by checking if the point satisfies the ellipse equation.
H A DSVGPathData.cpp51 SVGEllipseElement* ellipse = toSVGEllipseElement(element); local
54 float rx = ellipse->rx()->currentValue()->value(lengthContext);
57 float ry = ellipse->ry()->currentValue()->value(lengthContext);
63 path.addEllipse(FloatRect(ellipse->cx()->currentValue()->value(lengthContext) - rx, ellipse->cy()->currentValue()->value(lengthContext) - ry, rx * 2, ry * 2));
/external/chromium_org/third_party/WebKit/Source/core/css/
H A DBasicShapeFunctions.cpp85 const BasicShapeEllipse* ellipse = toBasicShapeEllipse(basicShape); local
88 ellipseValue->setCenterX(valueForCenterCoordinate(pool, style, ellipse->centerX(), HORIZONTAL));
89 ellipseValue->setCenterY(valueForCenterCoordinate(pool, style, ellipse->centerY(), VERTICAL));
90 ellipseValue->setRadiusX(basicShapeRadiusToCSSValue(pool, style, ellipse->radiusX()));
91 ellipseValue->setRadiusY(basicShapeRadiusToCSSValue(pool, style, ellipse->radiusY()));
224 RefPtr<BasicShapeEllipse> ellipse = BasicShapeEllipse::create(); local
226 ellipse->setCenterX(convertToCenterCoordinate(state, ellipseValue->centerX()));
227 ellipse->setCenterY(convertToCenterCoordinate(state, ellipseValue->centerY()));
228 ellipse->setRadiusX(cssValueToBasicShapeRadius(state, ellipseValue->radiusX()));
229 ellipse
[all...]
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/
H A DCanvasPathMethods.cpp142 * then the arc is the whole circumference of this ellipse, and the point at startAngle along this circle's circumference,
143 * measured in radians clockwise from the ellipse's semi-major axis, acts as both the start point and the end point.
151 * Otherwise, the arc is the path along the circumference of this ellipse from the start point to the end point,
153 * Since the points are on the ellipse, as opposed to being simply angles from zero,
195 * degenerateEllipse() handles a degenerated ellipse using several lines.
197 * Let's see a following example: line to ellipse to line.
204 * If radiusX becomes zero, the ellipse of the example is degenerated.
213 * Angles for P are 0.5Pi and 1.5Pi in the ellipse coordinates.
220 * Angles for P are 0 and Pi in the ellipse coordinates.
223 * NOTE: Before ellipse() call
278 void CanvasPathMethods::ellipse(float x, float y, float radiusX, float radiusY, float rotation, float startAngle, float endAngle, bool anticlockwise, ExceptionState& exceptionState) function in class:blink::CanvasPathMethods
[all...]
/external/chromium_org/third_party/WebKit/Source/core/rendering/shapes/
H A DShape.cpp120 const BasicShapeEllipse* ellipse = toBasicShapeEllipse(basicShape); local
121 FloatPoint center = floatPointForCenterCoordinate(ellipse->centerX(), ellipse->centerY(), FloatSize(boxWidth, boxHeight));
122 float radiusX = ellipse->floatValueForRadiusInBox(ellipse->radiusX(), center.x(), boxWidth);
123 float radiusY = ellipse->floatValueForRadiusInBox(ellipse->radiusY(), center.y(), boxHeight);
/external/chromium_org/third_party/skia/src/gpu/
H A DGrOvalRenderer.cpp174 * ellipse, specified as a 2D offset from center, and the reciprocals of the outer and inner radii,
315 * The output of this effect is a modulation of the input color and coverage for an ellipse,
633 const SkRect& ellipse,
647 SkPoint center = SkPoint::Make(ellipse.centerX(), ellipse.centerY());
649 SkScalar ellipseXRadius = SkScalarHalf(ellipse.width());
650 SkScalar ellipseYRadius = SkScalarHalf(ellipse.height());
682 // we don't handle it if curvature of the stroke is less than curvature of the ellipse
765 const SkRect& ellipse,
771 SkPoint center = SkPoint::Make(ellipse
631 drawEllipse(GrDrawTarget* target, bool useCoverageAA, const SkRect& ellipse, const SkStrokeRec& stroke) argument
763 drawDIEllipse(GrDrawTarget* target, bool useCoverageAA, const SkRect& ellipse, const SkStrokeRec& stroke) argument
[all...]
/external/skia/src/gpu/
H A DGrOvalRenderer.cpp167 * ellipse, specified as a 2D offset from center, and the reciprocals of the outer and inner radii,
297 * The output of this effect is a modulation of the input color and coverage for an ellipse,
603 const SkRect& ellipse,
617 SkPoint center = SkPoint::Make(ellipse.centerX(), ellipse.centerY());
619 SkScalar ellipseXRadius = SkScalarHalf(ellipse.width());
620 SkScalar ellipseYRadius = SkScalarHalf(ellipse.height());
652 // we don't handle it if curvature of the stroke is less than curvature of the ellipse
737 const SkRect& ellipse,
743 SkPoint center = SkPoint::Make(ellipse
601 drawEllipse(GrDrawTarget* target, bool useCoverageAA, const SkRect& ellipse, const SkStrokeRec& stroke) argument
735 drawDIEllipse(GrDrawTarget* target, bool useCoverageAA, const SkRect& ellipse, const SkStrokeRec& stroke) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
H A DGraphicsContext.cpp1430 void GraphicsContext::fillEllipse(const FloatRect& ellipse) argument
1435 SkRect rect = ellipse;
1481 void GraphicsContext::strokeEllipse(const FloatRect& ellipse) argument
1486 drawOval(ellipse, immutableState()->strokePaint());

Completed in 649 milliseconds