mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1208365 (part 4) - Remove gfxPattern::GraphicsExtend. r=bas.
--HG-- extra : rebase_source : baafed207a286892e36575ad24b3e896a1943ad6
This commit is contained in:
parent
b4181c38e0
commit
e68c9e3a2d
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user