mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 908006 - use gfxImageSurface for A8 mask layers. r=nical
This commit is contained in:
parent
e6c2e5fdab
commit
92359bcf96
@ -120,6 +120,10 @@ already_AddRefed<gfxASurface>
|
||||
LayerManager::CreateOptimalSurface(const gfxIntSize &aSize,
|
||||
gfxASurface::gfxImageFormat aFormat)
|
||||
{
|
||||
if (aFormat == gfxASurface::ImageFormatA8) {
|
||||
nsRefPtr<gfxASurface> surf = new gfxImageSurface(aSize, aFormat);
|
||||
return surf.forget();
|
||||
}
|
||||
return gfxPlatform::GetPlatform()->
|
||||
CreateOffscreenSurface(aSize, gfxASurface::ContentFromFormat(aFormat));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user