зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1107417 - Remove gfxContext::Polygon(). r=Bas
--HG-- extra : rebase_source : ec3568087fc1e3d60613853262921e9114cd9fc3
This commit is contained in:
Родитель
8f47bfb387
Коммит
e13b0d19cd
|
@ -297,21 +297,6 @@ gfxContext::Rectangle(const gfxRect& rect, bool snapToPixels)
|
|||
mPathBuilder->Close();
|
||||
}
|
||||
|
||||
void
|
||||
gfxContext::Polygon(const gfxPoint *points, uint32_t numPoints)
|
||||
{
|
||||
if (numPoints == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
EnsurePathBuilder();
|
||||
|
||||
mPathBuilder->MoveTo(ToPoint(points[0]));
|
||||
for (uint32_t i = 1; i < numPoints; i++) {
|
||||
mPathBuilder->LineTo(ToPoint(points[i]));
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
gfxContext::DrawSurface(gfxASurface *surface, const gfxSize& size)
|
||||
{
|
||||
|
|
|
@ -160,11 +160,6 @@ public:
|
|||
void Rectangle(const gfxRect& rect, bool snapToPixels = false);
|
||||
void SnappedRectangle(const gfxRect& rect) { return Rectangle(rect, true); }
|
||||
|
||||
/**
|
||||
* Draw a polygon from the given points
|
||||
*/
|
||||
void Polygon(const gfxPoint *points, uint32_t numPoints);
|
||||
|
||||
/**
|
||||
** Transformation Matrix manipulation
|
||||
**/
|
||||
|
|
Загрузка…
Ссылка в новой задаче