зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1103620 - Remove gfxContext::CurveTo and gfxContext::QuadraticCurveTo. r=mattwoodrow
This commit is contained in:
Родитель
4e948afe75
Коммит
20d92be1bc
|
@ -264,20 +264,6 @@ gfxContext::LineTo(const gfxPoint& pt)
|
|||
mPathBuilder->LineTo(ToPoint(pt));
|
||||
}
|
||||
|
||||
void
|
||||
gfxContext::CurveTo(const gfxPoint& pt1, const gfxPoint& pt2, const gfxPoint& pt3)
|
||||
{
|
||||
EnsurePathBuilder();
|
||||
mPathBuilder->BezierTo(ToPoint(pt1), ToPoint(pt2), ToPoint(pt3));
|
||||
}
|
||||
|
||||
void
|
||||
gfxContext::QuadraticCurveTo(const gfxPoint& pt1, const gfxPoint& pt2)
|
||||
{
|
||||
EnsurePathBuilder();
|
||||
mPathBuilder->QuadraticBezierTo(ToPoint(pt1), ToPoint(pt2));
|
||||
}
|
||||
|
||||
void
|
||||
gfxContext::Line(const gfxPoint& start, const gfxPoint& end)
|
||||
{
|
||||
|
|
|
@ -156,16 +156,6 @@ public:
|
|||
*/
|
||||
void LineTo(const gfxPoint& pt);
|
||||
|
||||
/**
|
||||
* Draws a cubic Bézier curve with control points pt1, pt2 and pt3.
|
||||
*/
|
||||
void CurveTo(const gfxPoint& pt1, const gfxPoint& pt2, const gfxPoint& pt3);
|
||||
|
||||
/**
|
||||
* Draws a quadratic Bézier curve with control points pt1, pt2 and pt3.
|
||||
*/
|
||||
void QuadraticCurveTo(const gfxPoint& pt1, const gfxPoint& pt2);
|
||||
|
||||
// path helpers
|
||||
/**
|
||||
* Draws a line from start to end.
|
||||
|
|
Загрузка…
Ссылка в новой задаче