Bug 1208365 (part 4) - Remove gfxPattern::GraphicsExtend. r=bas.

--HG--
extra : rebase_source : baafed207a286892e36575ad24b3e896a1943ad6
This commit is contained in:
Nicholas Nethercote 2015-09-25 00:59:13 -07:00
parent b4181c38e0
commit e68c9e3a2d
2 changed files with 0 additions and 31 deletions

View File

@ -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);

View File

@ -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);