mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 926023 - Use the value of SetPermitSubpixelAA for DrawTargetCairo. r=Bas
This commit is contained in:
parent
badc62973f
commit
92d47bc46f
@ -888,7 +888,7 @@ public:
|
||||
return mOpaqueRect;
|
||||
}
|
||||
|
||||
void SetPermitSubpixelAA(bool aPermitSubpixelAA) {
|
||||
virtual void SetPermitSubpixelAA(bool aPermitSubpixelAA) {
|
||||
mPermitSubpixelAA = aPermitSubpixelAA;
|
||||
}
|
||||
|
||||
|
@ -843,6 +843,14 @@ DrawTargetCairo::Fill(const Path *aPath,
|
||||
DrawPattern(aPattern, StrokeOptions(), aOptions, DRAW_FILL);
|
||||
}
|
||||
|
||||
void
|
||||
DrawTargetCairo::SetPermitSubpixelAA(bool aPermitSubpixelAA)
|
||||
{
|
||||
DrawTarget::SetPermitSubpixelAA(aPermitSubpixelAA);
|
||||
cairo_surface_set_subpixel_antialiasing(mSurface,
|
||||
aPermitSubpixelAA ? CAIRO_SUBPIXEL_ANTIALIASING_ENABLED : CAIRO_SUBPIXEL_ANTIALIASING_DISABLED);
|
||||
}
|
||||
|
||||
void
|
||||
DrawTargetCairo::FillGlyphs(ScaledFont *aFont,
|
||||
const GlyphBuffer &aBuffer,
|
||||
|
@ -60,6 +60,8 @@ public:
|
||||
virtual TemporaryRef<SourceSurface> Snapshot();
|
||||
virtual IntSize GetSize();
|
||||
|
||||
virtual void SetPermitSubpixelAA(bool aPermitSubpixelAA);
|
||||
|
||||
virtual bool LockBits(uint8_t** aData, IntSize* aSize,
|
||||
int32_t* aStride, SurfaceFormat* aFormat);
|
||||
virtual void ReleaseBits(uint8_t* aData);
|
||||
|
Loading…
Reference in New Issue
Block a user