diff --git a/gfx/thebes/gfx2DGlue.h b/gfx/thebes/gfx2DGlue.h index bb5788b088bb..543ce5baa5ec 100644 --- a/gfx/thebes/gfx2DGlue.h +++ b/gfx/thebes/gfx2DGlue.h @@ -82,30 +82,6 @@ inline GraphicsFilter ThebesFilter(Filter aFilter) } } -inline ExtendMode ToExtendMode(gfxPattern::GraphicsExtend aExtend) -{ - switch (aExtend) { - case gfxPattern::EXTEND_REPEAT: - return ExtendMode::REPEAT; - case gfxPattern::EXTEND_REFLECT: - return ExtendMode::REFLECT; - default: - return ExtendMode::CLAMP; - } -} - -inline gfxPattern::GraphicsExtend ThebesExtend(ExtendMode aExtend) -{ - switch (aExtend) { - case ExtendMode::REPEAT: - return gfxPattern::EXTEND_REPEAT; - case ExtendMode::REFLECT: - return gfxPattern::EXTEND_REFLECT; - default: - return gfxPattern::EXTEND_PAD; - } -} - inline gfxPoint ThebesPoint(const Point &aPoint) { return gfxPoint(aPoint.x, aPoint.y); diff --git a/gfx/thebes/gfxPattern.h b/gfx/thebes/gfxPattern.h index e2bd433c7397..8009ab20570f 100644 --- a/gfx/thebes/gfxPattern.h +++ b/gfx/thebes/gfxPattern.h @@ -53,13 +53,6 @@ public: mozilla::gfx::Matrix *aOriginalUserToDevice = nullptr); bool IsOpaque(); - enum GraphicsExtend { - EXTEND_NONE, - EXTEND_REPEAT, - EXTEND_REFLECT, - EXTEND_PAD - }; - // clamp, repeat, reflect void SetExtend(mozilla::gfx::ExtendMode aExtend);