mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 1208937 - Remove gfxPattern::GraphicsPatternType. r=jwatt.
This is easy because the only remaining uses occur in uncalled functions, which can be removed. --HG-- extra : rebase_source : 7c1ec2c175a8a73f1ce2375c3231891ecc6bfb22
This commit is contained in:
parent
bc525759f2
commit
5930cc971e
@ -106,21 +106,6 @@ inline ExtendMode ToExtendMode(gfxPattern::GraphicsExtend aExtend)
|
||||
}
|
||||
}
|
||||
|
||||
inline gfxPattern::GraphicsPatternType
|
||||
ThebesPatternType(PatternType aType)
|
||||
{
|
||||
switch (aType) {
|
||||
case PatternType::SURFACE:
|
||||
return gfxPattern::PATTERN_SURFACE;
|
||||
case PatternType::LINEAR_GRADIENT:
|
||||
return gfxPattern::PATTERN_LINEAR;
|
||||
case PatternType::RADIAL_GRADIENT:
|
||||
return gfxPattern::PATTERN_RADIAL;
|
||||
default:
|
||||
return gfxPattern::PATTERN_SOLID;
|
||||
}
|
||||
}
|
||||
|
||||
inline gfxPattern::GraphicsExtend ThebesExtend(ExtendMode aExtend)
|
||||
{
|
||||
switch (aExtend) {
|
||||
|
@ -219,12 +219,6 @@ gfxPattern::GetSolidColor(Color& aColorOut)
|
||||
return false;
|
||||
}
|
||||
|
||||
gfxPattern::GraphicsPatternType
|
||||
gfxPattern::GetType() const
|
||||
{
|
||||
return ThebesPatternType(mGfxPattern.GetPattern()->GetType());
|
||||
}
|
||||
|
||||
int
|
||||
gfxPattern::CairoStatus()
|
||||
{
|
||||
|
@ -74,15 +74,6 @@ public:
|
||||
void SetExtend(GraphicsExtend extend);
|
||||
GraphicsExtend Extend() const;
|
||||
|
||||
enum GraphicsPatternType {
|
||||
PATTERN_SOLID,
|
||||
PATTERN_SURFACE,
|
||||
PATTERN_LINEAR,
|
||||
PATTERN_RADIAL
|
||||
};
|
||||
|
||||
GraphicsPatternType GetType() const;
|
||||
|
||||
int CairoStatus();
|
||||
|
||||
void SetFilter(GraphicsFilter filter);
|
||||
|
Loading…
Reference in New Issue
Block a user