зеркало из https://github.com/mozilla/gecko-dev.git
Bug 908006 - use gfxImageSurface for A8 mask layers. r=nical
This commit is contained in:
Родитель
ef8c8e0c1b
Коммит
d08682d0c0
|
@ -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));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче